Permalink
Browse files

slight timeout for bottom item creation

  • Loading branch information...
Evan You
Evan You committed Mar 8, 2013
1 parent 00a7149 commit 8ee6a5cde97f20f6a7f042cba730a94fdddfb3d3
Showing with 2 additions and 4 deletions.
  1. +2 −4 js/collection.js
View
@@ -512,7 +512,7 @@ C.Collection = (function (raf) {
newItem.el.removeClass('dummy-item bottom');
newItem.onEditStart();
}, true);
- }, 0);
+ }, 50);
},
@@ -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'),
@@ -570,7 +568,7 @@ C.Collection = (function (raf) {
dummy = null;
}, 0);
});
- }, 100);
+ }, 50);
},

0 comments on commit 8ee6a5c

Please sign in to comment.