Skip to content

Commit

Permalink
Fix for "Failed to execute 'insertRule'" issue in activity. #36
Browse files Browse the repository at this point in the history
  • Loading branch information
hfjallemark committed Nov 27, 2013
1 parent 87bb44a commit a362954
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions knockout.activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down 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].cssRules.length);
document.styleSheets[0].insertRule(rule, 0);
animations[steps] = name;
}
el.css('-webkit-animation', animations[steps] + ' ' + duration + 's linear infinite');
Expand Down Expand Up @@ -196,7 +196,7 @@
});

/**
* Rendering strategy that creates a VML tree.
* Rendering strategy that creates a VML tree.
*/
render = function (target, d) {

Expand Down

0 comments on commit a362954

Please sign in to comment.