6 updateView: function(objdef) {
7 if (!this.currentView || objdef.kind != this.currentView.kind) {
8 this.destroyComponents();
9 this.currentView = this.createComponent(objdef);
10 this.currentView.render();
12 // We don't want to invoke any change handlers until
13 // these are all set, so we do that ourselves
14 for (var i in objdef) {
15 if (i == 'kind') continue;
16 this.currentView[i] = objdef[i];
18 for (var i in objdef) {
19 if (i == 'kind') continue;
20 this.currentView[i + 'Changed'] && this.currentView[i + 'Changed']();