From b5e225f15498e562bf5ea58314bca6a8d39f4969 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 15 Apr 2016 15:29:32 +0800 Subject: [PATCH] Roo/History.js --- Roo/History.js | 51 ++++++++------------------------------------------ 1 file changed, 8 insertions(+), 43 deletions(-) diff --git a/Roo/History.js b/Roo/History.js index 118245b7d6..f1104846eb 100644 --- a/Roo/History.js +++ b/Roo/History.js @@ -158,6 +158,13 @@ Roo.History = { init : function(options){ initialTitle : window.document.title, + this.store = {}; + this.idToState={}; + this.stateToId={}; + this.urlToId={}; + this.storedStates=[]; + this.savedStates=[]; + Roo.apply(this,options) @@ -183,49 +190,7 @@ Roo.History = { */ this.enabled = !this.emulated.pushState; - - - // ==================================================================== - // State Storage - - /** - * store - * The store for all session specific data - */ - History.store = {}; - - /** - * History.idToState - * 1-1: State ID to State Object - */ - History.idToState = History.idToState||{}; - - /** - * History.stateToId - * 1-1: State String to State ID - */ - History.stateToId = History.stateToId||{}; - - /** - * History.urlToId - * 1-1: State URL to State ID - */ - History.urlToId = History.urlToId||{}; - - /** - * History.storedStates - * Store the states in an array - */ - History.storedStates = History.storedStates||[]; - - /** - * History.savedStates - * Saved the states in an array - */ - History.savedStates = History.savedStates||[]; - - - + -- 2.39.2