r3525 committed - $.widget.* -> $.Widget.*

r3525 committed - $.widget.* -> $.Widget.*

Revision: 3525
Author: scott.gonzalez
Date: Tue Dec 22 20:30:15 2009
Log: $.widget.* -> $.Widget.*
http://code.google.com/p/jquery-ui/source/detail?r=3525
Modified:
/branches/dev/tests/unit/testsuite.js
/branches/dev/ui/jquery.ui.accordion.js
/branches/dev/ui/jquery.ui.autocomplete.js
/branches/dev/ui/jquery.ui.button.js
/branches/dev/ui/jquery.ui.dialog.js
/branches/dev/ui/jquery.ui.draggable.js
/branches/dev/ui/jquery.ui.droppable.js
/branches/dev/ui/jquery.ui.progressbar.js
/branches/dev/ui/jquery.ui.slider.js
/branches/dev/ui/jquery.ui.sortable.js
/branches/dev/ui/jquery.ui.tooltip.js
=======================================
--- /branches/dev/tests/unit/testsuite.js    Tue Dec 22 20:08:03 2009
+++ /branches/dev/tests/unit/testsuite.js    Tue Dec 22 20:30:15 2009
@@ -74,7 +74,7 @@
function testWidgetOverrides(widget) {
    test('$.widget overrides', function() {
        $.each(['option', '_getData', '_trigger'], function(i, method) {
-            ok($.widget.prototype[method] == $.ui[widget].prototype[method],
+            ok($.Widget.prototype[method] == $.ui[widget].prototype[method],
                'should not override ' + method);
        });
    });
=======================================
--- /branches/dev/ui/jquery.ui.accordion.js    Tue Dec 22 19:53:12 2009
+++ /branches/dev/ui/jquery.ui.accordion.js    Tue Dec 22 20:30:15 2009
@@ -158,7 +158,7 @@
    },
    _setOption: function(key, value) {
-        $.widget.prototype._setOption.apply(this, arguments);
+        $.Widget.prototype._setOption.apply(this, arguments);
        if (key == "active") {
            this.activate(value);
=======================================
--- /branches/dev/ui/jquery.ui.autocomplete.js    Tue Dec 22 19:46:47 2009
+++ /branches/dev/ui/jquery.ui.autocomplete.js    Tue Dec 22 20:30:15 2009
@@ -96,7 +96,7 @@
            .removeAttr("role")
            .removeAttr("aria-autocomplete")
            .removeAttr("aria-haspopup");
-        $.widget.prototype.destroy.call(this);
+        $.Widget.prototype.destroy.call(this);
    },
    // TODO call when source-option is updated
=======================================
--- /branches/dev/ui/jquery.ui.button.js    Tue Dec 22 20:09:21 2009
+++ /branches/dev/ui/jquery.ui.button.js    Tue Dec 22 20:30:15 2009
@@ -68,11 +68,11 @@
        this.element
            .removeClass(baseClasses + " " + otherClasses)
            .unbind(".button");
-        $.widget.prototype.destroy.call(this);
+        $.Widget.prototype.destroy.call(this);
    },
    _setOption: function(key, value) {
-        $.widget.prototype._setOption.apply(this, arguments);
+        $.Widget.prototype._setOption.apply(this, arguments);
        this._resetButton();
    },
@@ -140,7 +140,7 @@
    destroy: function() {
        this.element.add(this.label).show();
        this.button.remove();
-        $.widget.prototype.destroy.call(this);
+        $.Widget.prototype.destroy.call(this);
    },
    widget: function() {
@@ -188,7 +188,7 @@
    destroy: function() {
        this.buttons.remove();
        this.labels.add(this.radios).show();
-        $.widget.prototype.destroy.call(this);
+        $.Widget.prototype.destroy.call(this);
    },
    widget: function() {
@@ -226,7 +226,7 @@
            this.radio.radioButton("destroy");
        }
        this.buttons.button("destroy").removeClass("ui-corner-left
ui-corner-right");
-        $.widget.prototype.destroy.call(this);
+        $.Widget.prototype.destroy.call(this);
    },
    widget: function() {
=======================================
--- /branches/dev/ui/jquery.ui.dialog.js    Tue Dec 22 19:52:29 2009
+++ /branches/dev/ui/jquery.ui.dialog.js    Tue Dec 22 20:30:15 2009
@@ -496,7 +496,7 @@
                break;
        }
-        $.widget.prototype._setOption.apply(self, arguments);
+        $.Widget.prototype._setOption.apply(self, arguments);
        (resize && self._size());
    },
=======================================
--- /branches/dev/ui/jquery.ui.draggable.js    Tue Dec 22 19:56:23 2009
+++ /branches/dev/ui/jquery.ui.draggable.js    Tue Dec 22 20:30:15 2009
@@ -430,7 +430,7 @@
        ui = ui || this._uiHash();
        $.ui.plugin.call(this, type, [event, ui]);
        if(type == "drag") this.positionAbs =
this._convertPositionTo("absolute"); //The absolute position has to be
recalculated after plugins
-        return $.widget.prototype._trigger.call(this, type, event, ui);
+        return $.Widget.prototype._trigger.call(this, type, event, ui);
    },
    plugins: {},
=======================================
--- /branches/dev/ui/jquery.ui.droppable.js    Tue Dec 22 19:58:22 2009
+++ /branches/dev/ui/jquery.ui.droppable.js    Tue Dec 22 20:30:15 2009
@@ -67,7 +67,7 @@
                return d.is(value);
            };
        }
-        $.widget.prototype._setOption.apply(this, arguments);
+        $.Widget.prototype._setOption.apply(this, arguments);
    },
    _activate: function(event) {
=======================================
--- /branches/dev/ui/jquery.ui.progressbar.js    Tue Dec 22 19:59:41 2009
+++ /branches/dev/ui/jquery.ui.progressbar.js    Tue Dec 22 20:30:15 2009
@@ -53,7 +53,7 @@
        this.valueDiv.remove();
-        $.widget.prototype.destroy.apply(this, arguments);
+        $.Widget.prototype.destroy.apply(this, arguments);
        return this;
    },
@@ -77,7 +77,7 @@
                break;
        }
-        $.widget.prototype._setOption.apply(this, arguments);
+        $.Widget.prototype._setOption.apply(this, arguments);
    },
=======================================
--- /branches/dev/ui/jquery.ui.slider.js    Tue Dec 22 20:04:33 2009
+++ /branches/dev/ui/jquery.ui.slider.js    Tue Dec 22 20:30:15 2009
@@ -474,7 +474,7 @@
    _setOption: function(key, value) {
-        $.widget.prototype._setOption.apply(this, arguments);
+        $.Widget.prototype._setOption.apply(this, arguments);
        switch (key) {
            case 'disabled':
=======================================
--- /branches/dev/ui/jquery.ui.sortable.js    Tue Dec 22 20:05:37 2009
+++ /branches/dev/ui/jquery.ui.sortable.js    Tue Dec 22 20:30:15 2009
@@ -1024,7 +1024,7 @@
    },
    _trigger: function() {
-        if ($.widget.prototype._trigger.apply(this, arguments) === false) {
+        if ($.Widget.prototype._trigger.apply(this, arguments) === false) {
            this.cancel();
        }
    },
=======================================
--- /branches/dev/ui/jquery.ui.tooltip.js    Tue Dec 22 20:10:26 2009
+++ /branches/dev/ui/jquery.ui.tooltip.js    Tue Dec 22 20:30:15 2009
@@ -53,7 +53,7 @@
    destroy: function() {
        this.element.unbind(".tooltip");
        this.tooltip.remove();
-        $.widget.prototype.destroy.apply(this, arguments);
+        $.Widget.prototype.destroy.apply(this, arguments);
    },
    widget: function() {
--