Skip to content

Commit f66c099

Browse files
committed
rewrite check for this.view
1 parent fc8beb8 commit f66c099

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

client/spa/js/learning-resource/learning-resources.controller.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ module.exports = Backbone.Controller.extend({
2525
},
2626

2727
getView: function(){
28-
if (!this.view){
29-
var V = View.extend({collection: this.collection});
30-
this.view = new V();
28+
// if (this.view) {
29+
// this.view.remove();
30+
// }
31+
if (!this.view) {
32+
this.view = new View({collection: this.collection});
3133
}
3234
return this.view;
3335
},

0 commit comments

Comments
 (0)