Show More
@@ -101,8 +101,7 b' define([' | |||||
101 | var parameters = {model: model, options: options}; |
|
101 | var parameters = {model: model, options: options}; | |
102 | var view = new ViewType(parameters); |
|
102 | var view = new ViewType(parameters); | |
103 | view.listenTo(model, 'destroy', view.remove); |
|
103 | view.listenTo(model, 'destroy', view.remove); | |
104 | view.render(); |
|
104 | return Promise.resolve(view.render()).then(function() {return view;}); | |
105 | return view; |
|
|||
106 | }).catch(utils.reject("Couldn't create a view for model id '" + String(model.id) + "'", true)); |
|
105 | }).catch(utils.reject("Couldn't create a view for model id '" + String(model.id) + "'", true)); | |
107 | }); |
|
106 | }); | |
108 | return model.state_change; |
|
107 | return model.state_change; |
General Comments 0
You need to be logged in to leave comments.
Login now