Roo/History.js
authorAlan Knowles <alan@roojs.com>
Fri, 15 Apr 2016 07:24:07 +0000 (15:24 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 15 Apr 2016 07:24:07 +0000 (15:24 +0800)
Roo/History.js

index 08986d7..97ecb6c 100644 (file)
@@ -111,7 +111,7 @@ Roo.History = {
        sessionStorage : false, // sessionStorage
                 
     intervalList : false, // array normally.
-    enabled;
+    enabled : false,
 
        // Initialise History
        init : function(options){
@@ -134,6 +134,15 @@ Roo.History = {
                if ( typeof this.initHtml4 !== 'undefined' ) {
                        this.initHtml4();
                }
+        
+        this.initEmulated();
+               /**
+                * History.enabled
+                * Is History enabled?
+                */
+               this.enabled = !this.emulated.pushState;
+
+        
 
                // Return true
                return true;