aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.dialog.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-01-14 17:11:22 -0500
committerScott González <scott.gonzalez@gmail.com>2011-01-14 17:11:22 -0500
commit56c4c6aca992e1a441e6a2b498c911cf8d2221a4 (patch)
treeb6fe701dc8156a70f5f8066a8e8b06e2d28132aa /ui/jquery.ui.dialog.js
parentef1202dbe0af19b7929d6a31ef1ec66db7147889 (diff)
downloadjquery-ui-56c4c6aca992e1a441e6a2b498c911cf8d2221a4.tar.gz
jquery-ui-56c4c6aca992e1a441e6a2b498c911cf8d2221a4.zip
Change destroy to _destroy and remove calls to $.Widget.prototype.destroy in widgets with simple destroy methods.
Diffstat (limited to 'ui/jquery.ui.dialog.js')
-rw-r--r--ui/jquery.ui.dialog.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js
index e2b857723..50c2bb905 100644
--- a/ui/jquery.ui.dialog.js
+++ b/ui/jquery.ui.dialog.js
@@ -179,7 +179,7 @@ $.widget("ui.dialog", {
}
},
- destroy: function() {
+ _destroy: function() {
var self = this;
if ( self.overlay ) {
@@ -195,9 +195,6 @@ $.widget("ui.dialog", {
if ( self.originalTitle ) {
self.element.attr( "title", self.originalTitle );
}
-
- $.Widget.prototype.destroy.call( this );
- return self;
},
widget: function() {