Enable page switching
[blerg.git] / www / jssrc / blerg / Main.js
index 6fc7bb1..4c1fa27 100644 (file)
@@ -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();