From a36295461b7ee8953359c85c2a81bbadc03074b4 Mon Sep 17 00:00:00 2001 From: hfjallemark Date: Wed, 27 Nov 2013 11:16:37 +0100 Subject: [PATCH] Fix for "Failed to execute 'insertRule'" issue in activity. #36 --- knockout.activity.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/knockout.activity.js b/knockout.activity.js index 312a31c..34f5a26 100644 --- a/knockout.activity.js +++ b/knockout.activity.js @@ -75,7 +75,7 @@ }; /** - * Default rendering strategy. If neither SVG nor VML is available, a div with class-name 'busy' + * Default rendering strategy. If neither SVG nor VML is available, a div with class-name 'busy' * is inserted, that can be styled with CSS to display an animated gif as fallback. */ var render = function () { @@ -156,7 +156,7 @@ rule += p1 + value + p2 + value; } rule += '100% { -webkit-transform:rotate(100deg); }\n}'; - document.styleSheets[0].insertRule(rule, document.styleSheets[0].cssRules.length); + document.styleSheets[0].insertRule(rule, 0); animations[steps] = name; } el.css('-webkit-animation', animations[steps] + ' ' + duration + 's linear infinite'); @@ -196,7 +196,7 @@ }); /** - * Rendering strategy that creates a VML tree. + * Rendering strategy that creates a VML tree. */ render = function (target, d) {