X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;f=www%2Fjssrc%2Fblerg%2FMain.js;fp=www%2Fjssrc%2Fblerg%2FMain.js;h=4c1fa27a02b96951513144e03e22e6fa9ab98e7e;hb=8f3918fbe3d812782d70af32b0d122bcd16a4c65;hp=6fc7bb12dfb69459fd55ccd596cb12161b8ef75f;hpb=7fe1682ce5c257aee20c7b7bd20aa016eb6d8f75;p=blerg.git diff --git a/www/jssrc/blerg/Main.js b/www/jssrc/blerg/Main.js index 6fc7bb1..4c1fa27 100644 --- a/www/jssrc/blerg/Main.js +++ b/www/jssrc/blerg/Main.js @@ -4,7 +4,7 @@ enyo.kind({ classes: "blerg-main", currentView: null, updateView: function(objdef) { - if (!this.currentView || this.currentView.kind != this.currentView.kind) { + if (!this.currentView || objdef.kind != this.currentView.kind) { this.destroyComponents(); this.currentView = this.createComponent(objdef); this.currentView.render();