dg ms; little js cleanup [ci skip]
This commit is contained in:
parent
cf129b52ab
commit
cfb52a7129
1 changed files with 2 additions and 6 deletions
|
|
@ -15,8 +15,7 @@ app.views.Canvas = app.views.Base.extend(_.extend({}, app.views.infiniteScrollMi
|
|||
}, this))
|
||||
|
||||
//needs to be deferred so it happens after html rendering finishes
|
||||
_.delay(_.bind(this.mason, this), 0)
|
||||
|
||||
_.defer(_.bind(this.mason, this))
|
||||
},
|
||||
|
||||
addPostView : function(post) {
|
||||
|
|
@ -38,10 +37,7 @@ app.views.Canvas = app.views.Base.extend(_.extend({}, app.views.infiniteScrollMi
|
|||
},
|
||||
|
||||
triggerRelayoutAfterImagesLoaded : function(){
|
||||
var self = this;
|
||||
self.$el.imagesLoaded(function(){
|
||||
self.reLayout()
|
||||
})
|
||||
this.$el.imagesLoaded(_.bind(this.reLayout, this))
|
||||
},
|
||||
|
||||
reLayout : function(){
|
||||
|
|
|
|||
Loading…
Reference in a new issue