]> source.dussan.org Git - jquery.git/commitdiff
Unexpose $.support._scriptEval as it's not needed. Use a private var instead. Fixes...
authorDavid Murdoch <musicisair@yahoo.com>
Sat, 12 Feb 2011 02:05:19 +0000 (03:05 +0100)
committerAnton M <obhvsbypqghgc@gmail.com>
Sat, 12 Feb 2011 12:53:02 +0000 (13:53 +0100)
src/support.js

index 8b60abd264c974e3ec69b42db517adc498d1fec5..7f2591b5d03a5902c07f5bc033ee731e54f340fb 100644 (file)
@@ -61,7 +61,6 @@
                deleteExpando: true,
                optDisabled: false,
                checkClone: false,
-               _scriptEval: null,
                noCloneEvent: true,
                boxModel: null,
                inlineBlockNeedsLayout: false,
@@ -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();
                        // 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 );
                        root = script = id  = null;
                }
 
-               return jQuery.support._scriptEval;
+               return _scriptEval;
        };
 
        // Test to see if it's possible to delete an expando from an element