Skip to content

Commit

Permalink
Do not set className but just work on the classList
Browse files Browse the repository at this point in the history
  • Loading branch information
nebulade committed Apr 6, 2015
1 parent 676d9cf commit 738c02c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/animation.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,11 @@ Bungee.Animation = function (engine, id, parent) {
dirty = false;
}

if (elem._element)
elem._element.className = animationName;
if (elem._element) elem._element.element.classList.add(animationName);
};

elem.stop = function () {
elem._element.className = "";
elem._element.element.classList.remove(animationName);
};

elem.restart = function () {
Expand Down

0 comments on commit 738c02c

Please sign in to comment.