File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ var RenderableView = widgets.DOMWidgetView.extend({
57
57
} ,
58
58
59
59
setupEventListeners : function ( ) {
60
- this . listenTo ( this . model , 'rerender' , this . update . bind ( this ) ) ;
60
+ this . listenTo ( this . model , 'rerender' , this . tick . bind ( this ) ) ;
61
61
this . listenTo ( this . model , 'msg:custom' , this . onCustomMessage . bind ( this ) ) ;
62
62
63
63
this . listenTo ( this . model , 'change:_width' , this . updateSize . bind ( this ) ) ;
Original file line number Diff line number Diff line change @@ -70,15 +70,12 @@ _.extend(RendererPool.prototype, {
70
70
return ;
71
71
}
72
72
73
- // notify holder
74
- try {
75
- claimedRenderer . onReclaim ( ) ;
73
+ // remove claim token
74
+ this . claimedPool = _ . without ( this . claimedPool , claimedRenderer ) ;
75
+ this . freePool . push ( claimedRenderer . renderer ) ;
76
76
77
- } finally {
78
- // remove claim token
79
- this . claimedPool = _ . without ( this . claimedPool , claimedRenderer ) ;
80
- this . freePool . push ( claimedRenderer . renderer ) ;
81
- }
77
+ // notify holder
78
+ claimedRenderer . onReclaim ( ) ;
82
79
83
80
} ,
84
81
You can’t perform that action at this time.
0 commit comments