Upgrade to ExtJS 3.1.0 - Released 12/16/2009
[extjs.git] / src / widgets / ProgressBar.js
index fcae7fc..875211c 100644 (file)
@@ -1,5 +1,5 @@
 /*!
 /*!
- * Ext JS Library 3.0.3
+ * Ext JS Library 3.1.0
  * Copyright(c) 2006-2009 Ext JS, LLC
  * licensing@extjs.com
  * http://www.extjs.com/license
  * Copyright(c) 2006-2009 Ext JS, LLC
  * licensing@extjs.com
  * http://www.extjs.com/license
@@ -285,6 +285,16 @@ myAction.on('complete', function(){
             this.hide();\r
         }\r
         return this;\r
             this.hide();\r
         }\r
         return this;\r
+    },\r
+    \r
+    onDestroy: function(){\r
+        if(this.rendered){\r
+            if(this.textEl.isComposite){\r
+                this.textEl.clear();\r
+            }\r
+            Ext.destroyMembers(this, 'textEl', 'progressBar', 'textTopEl');\r
+        }\r
+        Ext.ProgressBar.superclass.onDestroy.call(this);\r
     }\r
 });\r
 Ext.reg('progress', Ext.ProgressBar);
\ No newline at end of file
     }\r
 });\r
 Ext.reg('progress', Ext.ProgressBar);
\ No newline at end of file