Skip to content

Commit

Permalink
Merge pull request #159 from eseifert/master
Browse files Browse the repository at this point in the history
Fix for broken animations with FF31 update
fixes #162
  • Loading branch information
sokra committed Sep 12, 2014
2 parents 40c20e3 + bc81cb6 commit 05603b2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/
var pfx = (function () {
var style = document.createElement('dummy').style,
prefixes = 'Webkit Moz O ms Khtml'.split(' '),
prefixes = ['Webkit', 'Moz', 'O', 'ms', 'Khtml', ''],
memory = {};
return function ( prop ) {
if ( typeof memory[ prop ] === "undefined" ) {
Expand All @@ -41,6 +41,9 @@
}
var index = 1 + name.substr(1).search(/[A-Z]/);
var prefix = name.substr(0, index).toLowerCase();
if(prefix === '') {
return name.toLowerCase();
}
var postfix = name.substr(index).toLowerCase();
return "-" + prefix + "-" + postfix;
}
Expand Down

0 comments on commit 05603b2

Please sign in to comment.