Show More
@@ -579,8 +579,8 b' define(["widgets/js/manager",' | |||||
579 | } |
|
579 | } | |
580 | // make a copy of the input array |
|
580 | // make a copy of the input array | |
581 | that._models = new_models.slice(); |
|
581 | that._models = new_models.slice(); | |
582 |
return Promise.all(added_views |
|
582 | return Promise.all(added_views).then(function(added) { | |
583 |
that.views |
|
583 | Array.prototype.splice.apply(that.views, [first_removed, that.views.length].concat(added)); | |
584 | return that.views; |
|
584 | return that.views; | |
585 | }); |
|
585 | }); | |
586 | }); |
|
586 | }); |
General Comments 0
You need to be logged in to leave comments.
Login now