diff options
author | Michał Gołębiowski <m.goleb@gmail.com> | 2013-08-27 00:54:13 +0200 |
---|---|---|
committer | Michał Gołębiowski <m.goleb@gmail.com> | 2013-09-06 03:38:22 +0200 |
commit | bbbdd947256a3fcd788fb9d4f306046082a1ef1f (patch) | |
tree | 2fc5a02969653d281a44a7b3ff6426b5561c8140 /src/manipulation.js | |
parent | 776012b8b3898fad2e0727880f1dc4af5c7b33c1 (diff) | |
download | jquery-bbbdd947256a3fcd788fb9d4f306046082a1ef1f.tar.gz jquery-bbbdd947256a3fcd788fb9d4f306046082a1ef1f.zip |
Fix #10814. Make support tests lazy and broken out to components.
Diffstat (limited to 'src/manipulation.js')
-rw-r--r-- | src/manipulation.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/manipulation.js b/src/manipulation.js index 89cc46c62..f47cdec38 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -3,14 +3,14 @@ define([ "./var/concat", "./var/push", "./manipulation/var/rcheckableType", + "./manipulation/support", "./data/var/data_priv", "./data/var/data_user", "./data/accepts", "./selector", "./traversing", - "./event", - "./support" -], function( jQuery, concat, push, rcheckableType, data_priv, data_user ){ + "./event" +], function( jQuery, concat, push, rcheckableType, support, data_priv, data_user ){ var rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, rtagName = /<([\w:]+)/, @@ -218,7 +218,8 @@ jQuery.fn.extend({ isFunction = jQuery.isFunction( value ); // We can't cloneNode fragments that contain checked, in WebKit - if ( isFunction || !( l <= 1 || typeof value !== "string" || jQuery.support.checkClone || !rchecked.test( value ) ) ) { + if ( isFunction || !( l <= 1 || typeof value !== "string" || support.checkClone || + !rchecked.test( value ) ) ) { return this.each(function( index ) { var self = set.eq( index ); if ( isFunction ) { @@ -324,7 +325,8 @@ jQuery.extend({ // Support: IE >= 9 // Fix Cloning issues - if ( !jQuery.support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) && !jQuery.isXMLDoc( elem ) ) { + if ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) && + !jQuery.isXMLDoc( elem ) ) { // We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/2 destElements = getAll( clone ); |