X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fjquery%2Fjquery.js;h=e2a2a22c09ba0a4820487522d78c1803d3662833;hb=d4849a0d3589ea3d369137f79b102eb68403b489;hp=b72095433256ce10a5edfb64f15dbfa08913b8d8;hpb=d9464547e0c328bf9f9b67e8d38621023a7e450e;p=jquery.git diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index b720954..e2a2a22 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -38,7 +38,7 @@ var jQuery = function(a,c) { // Handle HTML strings if ( typeof a == "string" ) { // HANDLE: $(html) -> $(array) - var m = /^[^<]*(<(.|\n)+>)[^>]*$/.exec(a); + var m = /^[^<]*(<(.|\s)+>)[^>]*$/.exec(a); if ( m ) a = jQuery.clean( [ m[1] ] ); @@ -259,7 +259,6 @@ jQuery.fn = jQuery.prototype = { pushStack: function( a ) { var ret = jQuery(a); ret.prevObject = this; - //return ret.setArray( a ); return ret; }, @@ -1282,7 +1281,7 @@ jQuery.extend({ var exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i; // Handle passing in a number to a CSS property - if ( value.constructor == Number && type == "curCSS" && !exclude.test(prop) ) + if ( value && value.constructor == Number && type == "curCSS" && !exclude.test(prop) ) return value + "px"; return value;