File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,6 @@ jQuery.offset = {
151
151
this . doesNotIncludeMarginInBodyOffset = ( body . offsetTop !== bodyMarginTop ) ;
152
152
153
153
body . removeChild ( container ) ;
154
- body = container = innerDiv = checkDiv = table = td = null ;
155
154
jQuery . offset . initialize = jQuery . noop ;
156
155
} ,
157
156
Original file line number Diff line number Diff line change 86
86
script = document . createElement ( "script" ) ,
87
87
id = "script" + jQuery . now ( ) ;
88
88
89
+ // Make sure that the execution of code works by injecting a script
90
+ // tag with appendChild/createTextNode
91
+ // (IE doesn't support this, fails, and uses .text instead)
89
92
try {
90
93
script . appendChild ( document . createTextNode ( "window." + id + "=1;" ) ) ;
91
94
} catch ( e ) { }
92
95
93
96
root . insertBefore ( script , root . firstChild ) ;
94
97
95
- // Make sure that the execution of code works by injecting a script
96
- // tag with appendChild/createTextNode
97
- // (IE doesn't support this, fails, and uses .text instead)
98
98
if ( window [ id ] ) {
99
99
_scriptEval = true ;
100
100
delete window [ id ] ;
103
103
}
104
104
105
105
root . removeChild ( script ) ;
106
- // release memory in IE
107
- root = script = id = null ;
108
106
}
109
107
110
108
return _scriptEval ;
223
221
el . setAttribute ( eventName , "return;" ) ;
224
222
isSupported = typeof el [ eventName ] === "function" ;
225
223
}
226
- el = null ;
227
-
228
224
return isSupported ;
229
225
} ;
230
226
You can’t perform that action at this time.
0 commit comments