X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Roo%2FHistory.js;h=91ae8d22f71197b3e0a5a4c5f89d7ca2f31ac0da;hb=0b69a11b1055a6d3a3fd0719bdd58b5a235de0e4;hp=0449e77d2010cceaaf698dcbc423f295c11544d5;hpb=c4fd2b9b84a91296e3d7c2529282e0565b625400;p=roojs1 diff --git a/Roo/History.js b/Roo/History.js index 0449e77d20..91ae8d22f7 100644 --- a/Roo/History.js +++ b/Roo/History.js @@ -1,17 +1,22 @@ /** * Originally based of this code... - refactored for Roo... - * + * https://github.com/browserstate/history.js + * History.js Core * @author Benjamin Arthur Lupton * @copyright 2010-2011 Benjamin Arthur Lupton * @license New BSD License + * + * Hackily modifyed by alan@roojs.com + * + * this is not initialized automatically.. + * must call Roo.History.init( { ... options... }); + * + * TOTALLY UNTESTED... + * + * Documentation to be done.... */ - -// this is not initialized automatically.. -// must call Roo.History.init( { ... options... }); - - Roo.History = { @@ -208,20 +213,14 @@ Roo.History = { Roo.apply(this,options) - // Check Load Status of Adapter - //if ( typeof this.Adapter === 'undefined' ) { - // return false; - //} - + // Check Load Status of Core - if ( typeof this.initCore !== 'undefined' ) { - this.initCore(); - } - + this.initCore(); + // Check Load Status of HTML4 Support - if ( typeof this.initHtml4 !== 'undefined' ) { - this.initHtml4(); - } + //if ( typeof this.initHtml4 !== 'undefined' ) { + // this.initHtml4(); + //} this.initEmulated(); @@ -258,8 +257,8 @@ Roo.History = { this.intervalList.push(setInterval(this.onUnload,this.storeInterval)); // For Other Browsers - Roo.get(window).on('beforeunload',this.onUnload); - Roo.get(window).on('unload',this.onUnload); + Roo.get(window).on('beforeunload',this.onUnload,this); + Roo.get(window).on('unload',this.onUnload, this); } else { this.onUnload = emptyFunction;