X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fmanipulation.js;h=c537c7095b55339deb389418ec32f41cccd9bef3;hb=f8ef75eb9124ce924be5fb521c783efd5c996e33;hp=c2c0ff2a70bce0fc6fdc2689d59089504ee5d8a8;hpb=7c04a64016c1f295dfdf4e731f693f8400a987bc;p=jquery.git diff --git a/src/manipulation.js b/src/manipulation.js index c2c0ff2..c537c70 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -1,8 +1,3 @@ -// exclude the following css properties to add px -var exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i, - // cache defaultView - defaultView = document.defaultView || {}; - jQuery.fn.extend({ text: function( text ) { if ( typeof text !== "object" && text != null ) @@ -151,13 +146,13 @@ jQuery.fn.extend({ for ( var i = 0, l = this.length; i < l; i++ ) callback.call( root(this[i], first), this.length > 1 || i > 0 ? fragment.cloneNode(true) : fragment ); - + if ( scripts ) jQuery.each( scripts, evalScript ); } return this; - + function root( elem, cur ) { return table && jQuery.nodeName(elem, "table") && jQuery.nodeName(cur, "tr") ? (elem.getElementsByTagName("tbody")[0] || @@ -311,7 +306,7 @@ jQuery.extend({ // IE completely kills leading whitespace when innerHTML is used if ( !jQuery.support.leadingWhitespace && /^\s/.test( elem ) ) div.insertBefore( context.createTextNode( elem.match(/^\s*/)[0] ), div.firstChild ); - + elem = jQuery.makeArray( div.childNodes ); } @@ -332,7 +327,7 @@ jQuery.extend({ fragment.appendChild( ret[i] ); } } - + return scripts; }