mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 14:45:29 +00:00
+ changed more uses of Utils.activeWindow to Utils.getCurrentWindow()
+ Generalized Aza's iQ.css('-moz-transform') fix
This commit is contained in:
parent
08a5e5117b
commit
59c1535d08
@ -517,6 +517,11 @@ iQ.fn = iQ.prototype = {
|
|||||||
} else
|
} else
|
||||||
properties = a;
|
properties = a;
|
||||||
|
|
||||||
|
var subsitutions = {
|
||||||
|
'-moz-transform': 'MozTransform',
|
||||||
|
'z-index': 'zIndex'
|
||||||
|
};
|
||||||
|
|
||||||
for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
|
for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
|
||||||
iQ.each(properties, function(key, value) {
|
iQ.each(properties, function(key, value) {
|
||||||
if(key == 'left' || key == 'top' || key == 'width' || key == 'height') {
|
if(key == 'left' || key == 'top' || key == 'width' || key == 'height') {
|
||||||
@ -524,12 +529,7 @@ iQ.fn = iQ.prototype = {
|
|||||||
value += 'px';
|
value += 'px';
|
||||||
}
|
}
|
||||||
|
|
||||||
// -moz-transform is a special case. To set it doing elem.style["-moz-transform"]
|
elem.style[subsitutions[key] || key] = value;
|
||||||
// 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;
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user