// must call Roo.History.init( { ... options... });
-Roo.History = new Roo.util.Observable({
+Roo.History = {
// ====================================================================
- this.Adapter.bind(window,'popstate',this.onPopState);
+ Roo.get(window).on('popstate',this.onPopState, this);
/**
this.intervalList.push(setInterval(this.onUnload,this.storeInterval));
// For Other Browsers
- this.Adapter.bind(window,'beforeunload',this.onUnload);
- this.Adapter.bind(window,'unload',this.onUnload);
+ Roo.get(window).on('beforeunload',this.onUnload);
+ Roo.get(window).on('unload',this.onUnload);
} else {
this.onUnload = emptyFunction;
/**
* Clear Intervals on exit to prevent memory leaks
*/
- this.Adapter.bind(window,"unload",this.clearAllIntervals);
+ Roo.get(window).on('unload',this.clearAllIntervals, this);
/**
* Create the initial State
}
}
}
-});
-
-
\ No newline at end of file
+};
\ No newline at end of file