Skip to content

Commit

Permalink
Animation: закрепление контекста, если поддерживаются CSS3 анимации
Browse files Browse the repository at this point in the history
  • Loading branch information
ColCh committed Jan 19, 2014
1 parent 96bd407 commit 02f4884
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions src/animate_class.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,24 @@
self.tick(delta);
};

// Закрепление контекста у функций, порождающих события
this.fireOnStart = function () {
self._not_self_fireOnStart();
};
this.fireOnStep = function () {
self._not_self_fireOnStep();
};
this.fireOnIteration = function () {
self._not_self_fireOnIteration();
};
this.fireOnComplete = function () {
self._not_self_fireOnComplete();
};
this.fireOnCompleteWithStop = function () {
self._not_self_fireOnCompleteWithStop();
};
if (CSSANIMATIONS_SUPPORTED) {
// Закрепление контекста у функций, порождающих события
this.fireOnStart = function () {
self._not_self_fireOnStart();
};
this.fireOnStep = function () {
self._not_self_fireOnStep();
};
this.fireOnIteration = function () {
self._not_self_fireOnIteration();
};
this.fireOnComplete = function () {
self._not_self_fireOnComplete();
};
this.fireOnCompleteWithStop = function () {
self._not_self_fireOnCompleteWithStop();
};
}

}

Expand Down

0 comments on commit 02f4884

Please sign in to comment.