From 56c4c6aca992e1a441e6a2b498c911cf8d2221a4 Mon Sep 17 00:00:00 2001 From: Scott González Date: Fri, 14 Jan 2011 17:11:22 -0500 Subject: Change destroy to _destroy and remove calls to $.Widget.prototype.destroy in widgets with simple destroy methods. --- ui/jquery.ui.progressbar.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ui/jquery.ui.progressbar.js') diff --git a/ui/jquery.ui.progressbar.js b/ui/jquery.ui.progressbar.js index 009049d27..ade258bee 100644 --- a/ui/jquery.ui.progressbar.js +++ b/ui/jquery.ui.progressbar.js @@ -38,7 +38,7 @@ $.widget( "ui.progressbar", { this._refreshValue(); }, - destroy: function() { + _destroy: function() { this.element .removeClass( "ui-progressbar ui-widget ui-widget-content ui-corner-all" ) .removeAttr( "role" ) @@ -47,8 +47,6 @@ $.widget( "ui.progressbar", { .removeAttr( "aria-valuenow" ); this.valueDiv.remove(); - - $.Widget.prototype.destroy.apply( this, arguments ); }, value: function( newValue ) { -- cgit v1.2.3