Quick bug fix, formatted pack better.

This commit is contained in:
John Resig 2006-08-26 00:43:41 +00:00
parent 94fc6aac19
commit a2af24b064
2 changed files with 317 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -959,7 +959,7 @@ jQuery.extend({
} else if (elem.currentStyle) { } 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[np]; ret = elem.currentStyle[prop] || elem.currentStyle[newProp];
} else if (document.defaultView && document.defaultView.getComputedStyle) { } else if (document.defaultView && document.defaultView.getComputedStyle) {