aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.dialog.js
diff options
context:
space:
mode:
authorEduardo Lundgren <eduardolundgren@gmail.com>2009-01-16 02:09:45 +0000
committerEduardo Lundgren <eduardolundgren@gmail.com>2009-01-16 02:09:45 +0000
commit8139c81d1b3521c8b8406a3c069c1c8829b05abe (patch)
tree1b1a3d259e4521916f7ec4d510ff5201f43d5ea7 /ui/ui.dialog.js
parent78c4d87d7b2f9f8ece53f062eb44cabf9dd51bf3 (diff)
downloadjquery-ui-8139c81d1b3521c8b8406a3c069c1c8829b05abe.tar.gz
jquery-ui-8139c81d1b3521c8b8406a3c069c1c8829b05abe.zip
Revert changes for #3838 for the release 1.6rc5
Diffstat (limited to 'ui/ui.dialog.js')
-rw-r--r--ui/ui.dialog.js13
1 files changed, 3 insertions, 10 deletions
diff --git a/ui/ui.dialog.js b/ui/ui.dialog.js
index 9d8d26044..38c24c596 100644
--- a/ui/ui.dialog.js
+++ b/ui/ui.dialog.js
@@ -14,9 +14,6 @@
*/
(function($) {
-var widgetName = "dialog";
-var classWidgetName = ".dialog";
-
var setDataSwitch = {
dragStart: "start.draggable",
drag: "drag.draggable",
@@ -33,10 +30,6 @@ var setDataSwitch = {
$.widget("ui.dialog", {
_init: function() {
- // update widgetName with the name given by the widget factory
- widgetName = this.widgetName;
- classWidgetName = '.' + widgetName;
-
this.originalTitle = this.element.attr('title');
this.options.title = this.options.title || this.originalTitle;
@@ -68,7 +61,7 @@ $.widget("ui.dialog", {
&& ev.keyCode == $.ui.keyCode.ESCAPE && self.close());
})
.attr({
- role: widgetName,
+ role: 'dialog',
'aria-labelledby': titleId
})
.mousedown(function() {
@@ -159,8 +152,8 @@ $.widget("ui.dialog", {
(this.overlay && this.overlay.destroy());
this.uiDialog.hide();
this.element
- .unbind(classWidgetName)
- .removeData(widgetName)
+ .unbind('.dialog')
+ .removeData('dialog')
.removeClass('ui-dialog-content ui-widget-content')
.hide().appendTo('body');
this.uiDialog.remove();