File tree Expand file tree Collapse file tree 1 file changed +17
-15
lines changed
vendor/assets/javascripts/jquery-fileupload Expand file tree Collapse file tree 1 file changed +17
-15
lines changed Original file line number Diff line number Diff line change 146146 if ( file . error ) {
147147 that . _adjustMaxNumberOfFiles ( 1 ) ;
148148 }
149- that . _transition ( $ ( this ) ) . done (
150- function ( ) {
151- var node = $ ( this ) ;
152- template = that . _renderDownload ( [ file ] )
153- . css ( 'height' , node . height ( ) )
154- . replaceAll ( node ) ;
155- that . _forceReflow ( template ) ;
156- that . _transition ( template ) . done (
157- function ( ) {
158- data . context = $ ( this ) ;
159- that . _trigger ( 'completed' , e , data ) ;
160- }
161- ) ;
162- }
163- ) ;
149+ if ( that ) {
150+ that . _transition ( $ ( this ) ) . done (
151+ function ( ) {
152+ var node = $ ( this ) ;
153+ template = that . _renderDownload ( [ file ] )
154+ . css ( 'height' , node . height ( ) )
155+ . replaceAll ( node ) ;
156+ that . _forceReflow ( template ) ;
157+ that . _transition ( template ) . done (
158+ function ( ) {
159+ data . context = $ ( this ) ;
160+ that . _trigger ( 'completed' , e , data ) ;
161+ }
162+ ) ;
163+ }
164+ ) ;
165+ }
164166 } ) ;
165167 } else {
166168 template = that . _renderDownload ( data . result )
You can’t perform that action at this time.
0 commit comments