commit:8f3918fbe3d812782d70af32b0d122bcd16a4c65
author:Chip Black
committer:Chip Black
date:Sat Apr 21 23:40:08 2012 -0700
parents:7fe1682ce5c257aee20c7b7bd20aa016eb6d8f75
Enable page switching
diff --git a/www/jssrc/blerg/Blerg.js b/www/jssrc/blerg/Blerg.js
line changes: +1/-1
index 31d28a8..a077b52
--- 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
line changes: +1/-1
index 6fc7bb1..4c1fa27
--- 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();