From 29a9cd4b56419a4034dbe245ec285ba5b6bdbdb4 Mon Sep 17 00:00:00 2001 From: Bernardo Pacheco Date: Wed, 6 Nov 2013 17:40:13 -0200 Subject: [PATCH] Fixing insertRule method call. --- knockout.activity.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/knockout.activity.js b/knockout.activity.js index 8d9c572..c234e1c 100644 --- a/knockout.activity.js +++ b/knockout.activity.js @@ -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');