From 8f3918fbe3d812782d70af32b0d122bcd16a4c65 Mon Sep 17 00:00:00 2001 From: Chip Black Date: Sat, 21 Apr 2012 23:40:08 -0700 Subject: [PATCH] Enable page switching --- www/jssrc/blerg/Blerg.js | 2 +- www/jssrc/blerg/Main.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/www/jssrc/blerg/Blerg.js b/www/jssrc/blerg/Blerg.js index 31d28a8..a077b52 100644 --- a/www/jssrc/blerg/Blerg.js +++ b/www/jssrc/blerg/Blerg.js @@ -38,7 +38,7 @@ enyo.kind({ this.lastHash = location.hash; this.urlSwitch(); - //setInterval(this.hashCheck.bind(this), 250); + setInterval(this.hashCheck.bind(this), 250); document.body.addEventListener('keyup', function(event) { if (event.shiftKey && event.keyCode == 32) { 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(); -- 2.25.1