File tree 1 file changed +15
-17
lines changed
1 file changed +15
-17
lines changed Original file line number Diff line number Diff line change @@ -348,7 +348,21 @@ jQuery.fn.extend({
348
348
}
349
349
350
350
if ( scripts . length ) {
351
- jQuery . each ( scripts , evalScript ) ;
351
+ jQuery . each ( scripts , function ( i , elem ) {
352
+ if ( elem . src ) {
353
+ jQuery . ajax ( {
354
+ url : elem . src ,
355
+ async : false ,
356
+ dataType : "script"
357
+ } ) ;
358
+ } else {
359
+ jQuery . globalEval ( ( elem . text || elem . textContent || elem . innerHTML || "" ) . replace ( rcleanScript , "/*$0*/" ) ) ;
360
+ }
361
+
362
+ if ( elem . parentNode ) {
363
+ elem . parentNode . removeChild ( elem ) ;
364
+ }
365
+ } ) ;
352
366
}
353
367
}
354
368
@@ -789,20 +803,4 @@ jQuery.extend({
789
803
}
790
804
} ) ;
791
805
792
- function evalScript ( i , elem ) {
793
- if ( elem . src ) {
794
- jQuery . ajax ( {
795
- url : elem . src ,
796
- async : false ,
797
- dataType : "script"
798
- } ) ;
799
- } else {
800
- jQuery . globalEval ( ( elem . text || elem . textContent || elem . innerHTML || "" ) . replace ( rcleanScript , "/*$0*/" ) ) ;
801
- }
802
-
803
- if ( elem . parentNode ) {
804
- elem . parentNode . removeChild ( elem ) ;
805
- }
806
- }
807
-
808
806
} ) ( jQuery ) ;
You can’t perform that action at this time.
0 commit comments