X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;f=www%2Fjssrc%2Fblerg%2FMain.js;h=757779dad0ed16a9c7f6054388dd27ee5881eec2;hb=65a1f7dc82554486ffa9cc03eac29a7a1642f046;hp=4c1fa27a02b96951513144e03e22e6fa9ab98e7e;hpb=9818631aecddd827374a0c01b3ec287e7b018bb1;p=blerg.git diff --git a/www/jssrc/blerg/Main.js b/www/jssrc/blerg/Main.js index 4c1fa27..757779d 100644 --- a/www/jssrc/blerg/Main.js +++ b/www/jssrc/blerg/Main.js @@ -9,8 +9,16 @@ enyo.kind({ this.currentView = this.createComponent(objdef); this.currentView.render(); } else { - for (var i in objdef) - this.currentView.setProperty(i, objdef[i]) + // We don't want to invoke any change handlers until + // these are all set, so we do that ourselves + for (var i in objdef) { + if (i == 'kind') continue; + this.currentView[i] = objdef[i]; + } + for (var i in objdef) { + if (i == 'kind') continue; + this.currentView[i + 'Changed'] && this.currentView[i + 'Changed'](); + } } } });