+ changed more uses of Utils.activeWindow to Utils.getCurrentWindow()

+ Generalized Aza's iQ.css('-moz-transform') fix
This commit is contained in:
Ian Gilman 2010-05-28 13:54:29 -07:00
parent 08a5e5117b
commit 59c1535d08

View File

@ -517,6 +517,11 @@ iQ.fn = iQ.prototype = {
} else
properties = a;
var subsitutions = {
'-moz-transform': 'MozTransform',
'z-index': 'zIndex'
};
for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
iQ.each(properties, function(key, value) {
if(key == 'left' || key == 'top' || key == 'width' || key == 'height') {
@ -524,12 +529,7 @@ iQ.fn = iQ.prototype = {
value += 'px';
}
// -moz-transform is a special case. To set it doing elem.style["-moz-transform"]
// doesn't work. You have to use elem.style["MozTransform"]. There are probably
// other key values like this.
// TODO: Generalize.
if( key == "-moz-transform" ) key = "MozTransform";
elem.style[key] = value;
elem.style[subsitutions[key] || key] = value;
});
}
},