r2400 - Dialog: refactored for auto-detection of getters.

r2400 - Dialog: refactored for auto-detection of getters.


Author: scott.gonzalez
Date: Sun Mar 29 19:12:21 2009
New Revision: 2400
Modified:
branches/dev/widget-factory/ui/ui.dialog.js
Log:
Dialog: refactored for auto-detection of getters.
Modified: branches/dev/widget-factory/ui/ui.dialog.js
==============================================================================
--- branches/dev/widget-factory/ui/ui.dialog.js    (original)
+++ branches/dev/widget-factory/ui/ui.dialog.js    Sun Mar 29 19:12:21 2009
@@ -137,7 +137,6 @@
        (options.bgiframe && $.fn.bgiframe && uiDialog.bgiframe());
        (options.autoOpen && this.open());
-        
    },
    destroy: function() {
@@ -151,6 +150,8 @@
        this.uiDialog.remove();
        (this.originalTitle && this.element.attr('title', this.originalTitle));
+
+        return this;
    },
    close: function(event) {
@@ -172,6 +173,8 @@
        $.ui.dialog.overlay.resize();
        self._isOpen = false;
+
+        return self;
    },
    isOpen: function() {
@@ -181,7 +184,6 @@
    // the force parameter allows us to move modal dialogs to their correct
    // position on open
    moveToTop: function(force, event) {
-
        if ((this.options.modal && !force)
            || (!this.options.stack && !this.options.modal)) {
            return this._trigger('focus', event);
@@ -198,6 +200,8 @@
        this.uiDialog.css('z-index', ++$.ui.dialog.maxZ);
        this.element.attr(saveScroll);
        this._trigger('focus', event);
+
+        return this;
    },
    open: function() {
@@ -245,6 +249,8 @@
        this._trigger('open');
        this._isOpen = true;
+
+        return this;
    },
    _createButtons: function(buttons) {
@@ -507,8 +513,6 @@
        width: 300,
        zIndex: 1000
    },
-
-    getter: 'isOpen',
    uuid: 0,
    maxZ: 0,