mirror of
https://github.com/blasten/turn.js.git
synced 2025-09-16 16:40:10 +08:00
Avoid potential compatibility issue with -moz-prefixed transforms.
See discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1879746 I don't know how to regenerate turn.min.js, help there would be appreciated.
This commit is contained in:
parent
08c1f6599a
commit
6d622da43a
3
turn.js
3
turn.js
@ -180,6 +180,9 @@ var has3d,
|
|||||||
len = vendorPrefixes.length,
|
len = vendorPrefixes.length,
|
||||||
vendor = '';
|
vendor = '';
|
||||||
|
|
||||||
|
if ('transform' in document.body.style)
|
||||||
|
return vendor;
|
||||||
|
|
||||||
while (len--)
|
while (len--)
|
||||||
if ((vendorPrefixes[len] + 'Transform') in document.body.style)
|
if ((vendorPrefixes[len] + 'Transform') in document.body.style)
|
||||||
vendor='-'+vendorPrefixes[len].toLowerCase()+'-';
|
vendor='-'+vendorPrefixes[len].toLowerCase()+'-';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user