X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..10a866c12701c0a0afd0ac85dcdcf32a421514ac:/docs/source/History.html?ds=sidebyside diff --git a/docs/source/History.html b/docs/source/History.html index 8a42ef18..99630ecb 100644 --- a/docs/source/History.html +++ b/docs/source/History.html @@ -1,5 +1,6 @@
+this
reference) in which the callback is executed. Defaults to the browser window.
*/
init: function (onReady, scope) {
if(ready) {
@@ -142,7 +145,20 @@ Ext.History = (function () {
if (Ext.isIE) {
iframe = Ext.getDom(Ext.History.iframeId);
}
- this.addEvents('ready', 'change');
+ this.addEvents(
+ /**
+ * @event ready
+ * Fires when the Ext.History singleton has been initialized and is ready for use.
+ * @param {Ext.History} The Ext.History singleton.
+ */
+ 'ready',
+ /**
+ * @event change
+ * Fires when navigation back or forwards within the local page's history occurs.
+ * @param {String} token An identifier associated with the page state at that point in its history.
+ */
+ 'change'
+ );
if(onReady){
this.on('ready', onReady, scope, {single:true});
}
@@ -164,12 +180,15 @@ tabPanel.on('tabchange', function(tabPanel, tab){
* it will not save a new history step. Set to false if the same state can be saved more than once
* at the same history stack location (defaults to true).
*/
- add: function (token, preventDup) {
+ add: function (token, preventDup, suppressEvent) {
if(preventDup !== false){
if(this.getToken() == token){
return true;
}
}
+ if(suppressEvent){
+ ignoreNext = token;
+ }
if (Ext.isIE) {
return updateIFrame(token);
} else {