Skip to content

Commit

Permalink
Unexpose $.support._scriptEval as it's not needed. Use a private var …
Browse files Browse the repository at this point in the history
…instead. Fixes #8200.
  • Loading branch information
David Murdoch authored and jitter committed Feb 12, 2011
1 parent d479011 commit f099907
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/support.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
deleteExpando: true,
optDisabled: false,
checkClone: false,
_scriptEval: null,
noCloneEvent: true,
boxModel: null,
inlineBlockNeedsLayout: false,
Expand All @@ -74,8 +73,9 @@
select.disabled = true;
jQuery.support.optDisabled = !opt.disabled;

var _scriptEval = null;
jQuery.support.scriptEval = function() {
if ( jQuery.support._scriptEval === null ) {
if ( _scriptEval === null ) {
var root = document.documentElement,
script = document.createElement("script"),
id = "script" + jQuery.now();
Expand All @@ -91,18 +91,18 @@
// tag with appendChild/createTextNode
// (IE doesn't support this, fails, and uses .text instead)
if ( window[ id ] ) {
jQuery.support._scriptEval = true;
_scriptEval = true;
delete window[ id ];
} else {
jQuery.support._scriptEval = false;
_scriptEval = false;
}

root.removeChild( script );
// release memory in IE
root = script = id = null;
}

return jQuery.support._scriptEval;
return _scriptEval;
};

// Test to see if it's possible to delete an expando from an element
Expand Down

0 comments on commit f099907

Please sign in to comment.