r2998 commited - Dev widget factory: Update dialog to work with new widget factory.

r2998 commited - Dev widget factory: Update dialog to work with new widget factory.


Revision: 2998
Author: scott.gonzalez
Date: Mon Jul 27 19:36:41 2009
Log: Dev widget factory: Update dialog to work with new widget factory.
http://code.google.com/p/jquery-ui/source/detail?r=2998
Modified:
/branches/dev/widget-factory/ui/ui.dialog.js
=======================================
--- /branches/dev/widget-factory/ui/ui.dialog.js    Mon Jul 27 19:29:48 2009
+++ /branches/dev/widget-factory/ui/ui.dialog.js    Mon Jul 27 19:36:41 2009
@@ -27,7 +27,29 @@
        'ui-corner-all ';
$.widget("ui.dialog", {
-
+    options: {
+        autoOpen: true,
+        stackfix: false,
+        buttons: {},
+        closeOnEscape: true,
+        closeText: 'close',
+        dialogClass: '',
+        draggable: true,
+        hide: null,
+        height: 'auto',
+        maxHeight: false,
+        maxWidth: false,
+        minHeight: 150,
+        minWidth: 150,
+        modal: false,
+        position: 'center',
+        resizable: true,
+        show: null,
+        stack: true,
+        title: '',
+        width: 300,
+        zIndex: 1000
+    },
    _init: function() {
        this.originalTitle = this.element.attr('title');
@@ -522,29 +544,6 @@
$.extend($.ui.dialog, {
    version: "@VERSION",
-    defaults: {
-        autoOpen: true,
-        stackfix: false,
-        buttons: {},
-        closeOnEscape: true,
-        closeText: 'close',
-        dialogClass: '',
-        draggable: true,
-        hide: null,
-        height: 'auto',
-        maxHeight: false,
-        maxWidth: false,
-        minHeight: 150,
-        minWidth: 150,
-        modal: false,
-        position: 'center',
-        resizable: true,
-        show: null,
-        stack: true,
-        title: '',
-        width: 300,
-        zIndex: 1000
-    },
    uuid: 0,
    maxZ: 0,