r3515 committed - Update draggable for new widget factory.

r3515 committed - Update draggable for new widget factory.

Revision: 3515
Author: scott.gonzalez
Date: Tue Dec 22 19:56:23 2009
Log: Update draggable for new widget factory.
http://code.google.com/p/jquery-ui/source/detail?r=3515
Modified:
/branches/dev/ui/jquery.ui.draggable.js
=======================================
--- /branches/dev/ui/jquery.ui.draggable.js    Tue Dec 22 19:37:18 2009
+++ /branches/dev/ui/jquery.ui.draggable.js    Tue Dec 22 19:56:23 2009
@@ -15,7 +15,32 @@
(function($) {
$.widget("ui.draggable", $.ui.mouse, {
-
+    options: {
+        addClasses: true,
+        appendTo: "parent",
+        axis: false,
+        connectToSortable: false,
+        containment: false,
+        cursor: "auto",
+        cursorAt: false,
+        grid: false,
+        handle: false,
+        helper: "original",
+        iframeFix: false,
+        opacity: false,
+        refreshPositions: false,
+        revert: false,
+        revertDuration: 500,
+        scope: "default",
+        scroll: true,
+        scrollSensitivity: 20,
+        scrollSpeed: 20,
+        snap: false,
+        snapMode: "both",
+        snapTolerance: 20,
+        stack: false,
+        zIndex: false
+    },
    _init: function() {
        if (this.options.helper == 'original' && !(/^(?:r|a|
f)/).test(this.element.css("position")))
@@ -423,33 +448,7 @@
$.extend($.ui.draggable, {
    version: "@VERSION",
-    eventPrefix: "drag",
-    defaults: $.extend({}, $.ui.mouse.defaults, {
-        addClasses: true,
-        appendTo: "parent",
-        axis: false,
-        connectToSortable: false,
-        containment: false,
-        cursor: "auto",
-        cursorAt: false,
-        grid: false,
-        handle: false,
-        helper: "original",
-        iframeFix: false,
-        opacity: false,
-        refreshPositions: false,
-        revert: false,
-        revertDuration: 500,
-        scope: "default",
-        scroll: true,
-        scrollSensitivity: 20,
-        scrollSpeed: 20,
-        snap: false,
-        snapMode: "both",
-        snapTolerance: 20,
-        stack: false,
-        zIndex: false
-    })
+    eventPrefix: "drag"
});
$.ui.plugin.add("draggable", "connectToSortable", {
--