Skip to content

Commit

Permalink
slight timeout for bottom item creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan You committed Mar 8, 2013
1 parent 00a7149 commit 8ee6a5c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions js/collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ C.Collection = (function (raf) {
newItem.el.removeClass('dummy-item bottom');
newItem.onEditStart();
}, true);
}, 0);
}, 50);

},

Expand All @@ -529,8 +529,6 @@ C.Collection = (function (raf) {
this.updateColor();
this.updateBounds();



// dummy
var lastUndone = this.getItemByOrder(this.count - 1),
color = lastUndone.el.find('.slider').css('background-color'),
Expand Down Expand Up @@ -570,7 +568,7 @@ C.Collection = (function (raf) {
dummy = null;
}, 0);
});
}, 100);
}, 50);

},

Expand Down

0 comments on commit 8ee6a5c

Please sign in to comment.