Skip to content

Commit

Permalink
Animation: генерация ID анимации только для CSS3 режима
Browse files Browse the repository at this point in the history
  • Loading branch information
ColCh committed Jan 19, 2014
1 parent 02f4884 commit 7642123
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/animate_class.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* @constructor
*/
function Animation () {
this.animId = generateId();
this.animatedProperties = new PropertyDescriptorCollection();
var self = this;
this.selfTick = function (delta) {
Expand Down Expand Up @@ -489,6 +488,8 @@

if (this.usesCSS3) {

this.animId = generateId();

// Обёртки над обработчиками событий CSS анимации
if (CSSANIMATIONS_SUPPORTED) {
delegatorCallbacks[ ANIMATION_START_EVENTTYPE ][ this.animId ] = this.fireOnStart;
Expand Down Expand Up @@ -636,7 +637,6 @@
}

this.pause();
this.animId = generateId();

};

Expand Down

0 comments on commit 7642123

Please sign in to comment.