Skip to content

Commit

Permalink
Merge pull request #34 from bernardo-pacheco/master
Browse files Browse the repository at this point in the history
Fixing insertRule method call.
  • Loading branch information
Hans Fjällemark committed Nov 18, 2013
2 parents e3146e4 + 29a9cd4 commit bc27644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion knockout.activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
rule += p1 + value + p2 + value;
}
rule += '100% { -webkit-transform:rotate(100deg); }\n}';
document.styleSheets[0].insertRule(rule);
document.styleSheets[0].insertRule(rule, document.styleSheets[0].cssRules.length);
animations[steps] = name;
}
el.css('-webkit-animation', animations[steps] + ' ' + duration + 's linear infinite');
Expand Down

0 comments on commit bc27644

Please sign in to comment.