have somewhat ok global lock on animation down, better than nothing

This commit is contained in:
Peter Cottle 2012-10-13 13:48:15 -07:00
parent ef5ff59cca
commit a9e4d5a9a6
5 changed files with 18 additions and 103 deletions

View file

@ -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')();
},