Skip to content

Commit

Permalink
Fix bug where text was not centered in IE. Fixes #52
Browse files Browse the repository at this point in the history
  • Loading branch information
kimmobrunfeldt committed Apr 8, 2015
1 parent a146bae commit 9537bac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Utility functions

var PREFIXES = 'webkit moz o ms'.split(' ');
var PREFIXES = 'Webkit Moz O ms'.split(' ');

// Copy all attributes from source object to destination object.
// destination object is mutated.
Expand Down Expand Up @@ -47,7 +47,7 @@ function render(template, vars) {

function setStyle(element, style, value) {
for (var i = 0; i < PREFIXES.length; ++i) {
var prefix = capitalize(PREFIXES[i]);
var prefix = PREFIXES[i];
element.style[prefix + capitalize(style)] = value;
}

Expand Down

0 comments on commit 9537bac

Please sign in to comment.