Shower::_applyTransform: refactoring for transform, forEach instead of copy/paste
This commit is contained in:
parent
cbcb7e91c5
commit
2ae51751d8
|
@ -242,7 +242,7 @@ window.shower = window.shower || (function(window, document, undefined) {
|
||||||
'MozTransform',
|
'MozTransform',
|
||||||
'msTransform',
|
'msTransform',
|
||||||
'OTransform',
|
'OTransform',
|
||||||
'transform',
|
'transform'
|
||||||
].forEach(function(prop) {
|
].forEach(function(prop) {
|
||||||
body.style[prop] = transform;
|
body.style[prop] = transform;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue