X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..6e39d509471fe9b4e2660e0d1631b350d0c66f40:/docs/source/ProgressBar.html diff --git a/docs/source/ProgressBar.html b/docs/source/ProgressBar.html index b7e67d8a..1b17b4f0 100644 --- a/docs/source/ProgressBar.html +++ b/docs/source/ProgressBar.html @@ -1,5 +1,6 @@ + The source code @@ -198,6 +199,7 @@ myAction.on('complete', function(){ this.waitTimer = Ext.TaskMgr.start({ run: function(i){ var inc = o.increment || 10; + i -= 1; this.updateProgress(((((i+inc)%inc)+1)*(100/inc))*0.01, null, o.animate); }, interval: o.interval || 1000, @@ -285,6 +287,16 @@ myAction.on('complete', function(){ this.hide(); } return this; + }, + + onDestroy: function(){ + if(this.rendered){ + if(this.textEl.isComposite){ + this.textEl.clear(); + } + Ext.destroyMembers(this, 'textEl', 'progressBar', 'textTopEl'); + } + Ext.ProgressBar.superclass.onDestroy.call(this); } }); Ext.reg('progress', Ext.ProgressBar);