John Resig wrote:
> You caught me in the middle of some updates, so it's now in rev 226,
> slightly modified to be more generic:
> http://jquery.com/src/jquery-svn.js
>
> var np = p.replace(/\-(\w)/g,function(m,c){return c.toUpperCase()});
> r = e.currentStyle[p] || e.currentStyle[np];
In your (commendable) effort to make the jQuery source a bit friendlier,
it looks like you missed a stray 'np' in SVN revision 229:
ret = elem.currentStyle[prop] || elem.currentStyle[np];
^^
That should be 'newProp', no?
Best wishes,
Dave Cardwell.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/