aboutsummaryrefslogtreecommitdiffstats
path: root/src/support.js
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2010-03-09 09:14:27 -0500
committerjeresig <jeresig@gmail.com>2010-03-09 09:14:27 -0500
commit141ad3c3e21e7734e67e37b5fb39782fe11b3c18 (patch)
treecd4b57ea632b6767034e53bd20ba1261a09e51f2 /src/support.js
parent0a307b332e896b6b480952abb5d3bf03819893c8 (diff)
downloadjquery-141ad3c3e21e7734e67e37b5fb39782fe11b3c18.tar.gz
jquery-141ad3c3e21e7734e67e37b5fb39782fe11b3c18.zip
Landing a faster trim method. Based upon the work by Travis Hardiman and DBJDBJ. More details here: http://forum.jquery.com/topic/faster-jquery-trim Fixes #2279, #4452, and #4835.
Diffstat (limited to 'src/support.js')
-rw-r--r--src/support.js15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/support.js b/src/support.js
index f9429f956..befc53272 100644
--- a/src/support.js
+++ b/src/support.js
@@ -56,10 +56,7 @@
// (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
optSelected: document.createElement("select").appendChild( document.createElement("option") ).selected,
- parentNode: div.removeChild( div.appendChild( document.createElement("div") ) ).parentNode === null,
-
// Will be defined later
- deleteExpando: true,
checkClone: false,
scriptEval: false,
noCloneEvent: true,
@@ -69,7 +66,7 @@
script.type = "text/javascript";
try {
script.appendChild( document.createTextNode( "window." + id + "=1;" ) );
- } catch( scriptError ) {}
+ } catch(e) {}
root.insertBefore( script, root.firstChild );
@@ -81,15 +78,6 @@
delete window[ id ];
}
- // Test to see if it's possible to delete an expando from an element
- // Fails in Internet Explorer
- try {
- delete script.test;
-
- } catch( expandoError ) {
- jQuery.support.deleteExpando = false;
- }
-
root.removeChild( script );
if ( div.attachEvent && div.fireEvent ) {
@@ -120,7 +108,6 @@
document.body.appendChild( div );
jQuery.boxModel = jQuery.support.boxModel = div.offsetWidth === 2;
document.body.removeChild( div ).style.display = 'none';
-
div = null;
});