1
0
Fork 0

Only one applicationDetailView

This commit is contained in:
Lucas Dohmen 2014-12-12 23:37:37 +01:00 committed by Michael Hackstein
parent cb5374e293
commit 303e4e6d94
1 changed files with 8 additions and 4 deletions

View File

@ -112,10 +112,14 @@
if (this.foxxList.length === 0) {
this.foxxList.fetch({ async: false });
}
var applicationDetailView = new window.ApplicationDetailView({
model: this.foxxList.get(key)
});
applicationDetailView.render();
if (!this.hasOwnProperty('applicationDetailView')) {
this.applicationDetailView = new window.ApplicationDetailView({
model: this.foxxList.get(key)
});
}
this.applicationDetailView.model = this.foxxList.get(key);
this.applicationDetailView.render();
},
login: function () {