Skip to content

Commit

Permalink
Reverted uppercase changes to prefix names and returning lowercase name
Browse files Browse the repository at this point in the history
  • Loading branch information
eseifert committed Sep 11, 2014
1 parent b7b7f5e commit bc81cb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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', ''],
prefixes = ['Webkit', 'Moz', 'O', 'ms', 'Khtml', ''],
memory = {};
return function ( prop ) {
if ( typeof memory[ prop ] === "undefined" ) {
Expand Down Expand Up @@ -42,7 +42,7 @@
var index = 1 + name.substr(1).search(/[A-Z]/);
var prefix = name.substr(0, index).toLowerCase();
if(prefix === '') {
return name;
return name.toLowerCase();
}
var postfix = name.substr(index).toLowerCase();
return "-" + prefix + "-" + postfix;
Expand Down

0 comments on commit bc81cb6

Please sign in to comment.