mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-10 22:54:24 +02:00
have somewhat ok global lock on animation down, better than nothing
This commit is contained in:
parent
ef5ff59cca
commit
a9e4d5a9a6
5 changed files with 18 additions and 103 deletions
|
@ -43,10 +43,15 @@ var AnimationQueue = Backbone.Model.extend({
|
|||
|
||||
start: function() {
|
||||
this.set('index', 0);
|
||||
|
||||
// set the global lock that we are animating
|
||||
GLOBAL.isAnimating = true;
|
||||
this.next();
|
||||
},
|
||||
|
||||
finish: function() {
|
||||
// release lock here
|
||||
GLOBAL.isAnimating = false;
|
||||
this.get('callback')();
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue