X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fjquery%2Fjquery.js;h=fdb488e98be82faac08b0b7861f84635cb8dab7a;hb=69efa31318238a1af5644da7aa5dc691dc33b376;hp=9daa40035c8a9f4df868a04ecf86fc030efe0325;hpb=744c0609d4848d89c528f1eb61c596ee4bc0d393;p=jquery.git diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 9daa400..fdb488e 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -280,7 +280,7 @@ jQuery.fn = jQuery.prototype = { return num == undefined ? // Return a 'clean' array - jQuery.map( this, function(a){ return a } ) : + jQuery.merge( this, [] ) : // Return just the object this[num]; @@ -1201,7 +1201,7 @@ jQuery.extend({ } else if (elem.currentStyle) { - var newProp = prop.replace(/\-(\w)/g,function(m,c){return c.toUpperCase()}); + var newProp = prop.replace(/\-(\w)/g,function(m,c){return c.toUpperCase();}); ret = elem.currentStyle[prop] || elem.currentStyle[newProp]; } else if (document.defaultView && document.defaultView.getComputedStyle) {