Enable page switching
authorChip Black <bytex64@bytex64.net>
Sun, 22 Apr 2012 06:40:08 +0000 (23:40 -0700)
committerChip Black <bytex64@bytex64.net>
Sun, 22 Apr 2012 06:40:08 +0000 (23:40 -0700)
www/jssrc/blerg/Blerg.js
www/jssrc/blerg/Main.js

index 31d28a8..a077b52 100644 (file)
@@ -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) {
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();