Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
detect usage of appendRule instead of insertRule
Browse files Browse the repository at this point in the history
applied fix of orginal repo: jlongster/css-animations.js@bedeff0
  • Loading branch information
marcbaechinger committed May 22, 2013
1 parent e8034f7 commit f3a1050
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions www/js/lib/layouts/css-animations.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

(function() {

// Utility
Expand Down Expand Up @@ -81,7 +80,11 @@
}
cssRule += "}";

this.original.insertRule(cssRule);
if('appendRule' in this.original) {
this.original.appendRule(cssRule);
} else {
this.original.insertRule(cssRule);
}
this.initKeyframes();
};

Expand Down Expand Up @@ -177,4 +180,4 @@
else {
window.CSSAnimations = new Animations();
}
})();
})();

0 comments on commit f3a1050

Please sign in to comment.