]> source.dussan.org Git - jquery-ui.git/commitdiff
Interactions: Update widget defaults to match documented API.
authorMike Sherov <mike.sherov@gmail.com>
Wed, 2 Jan 2013 23:27:22 +0000 (18:27 -0500)
committerMike Sherov <mike.sherov@gmail.com>
Wed, 2 Jan 2013 23:27:22 +0000 (18:27 -0500)
tests/unit/draggable/draggable_common.js
tests/unit/droppable/droppable_common.js
tests/unit/resizable/resizable_common.js
tests/unit/selectable/selectable_common.js
tests/unit/sortable/sortable_common.js
ui/jquery.ui.draggable.js
ui/jquery.ui.droppable.js
ui/jquery.ui.resizable.js
ui/jquery.ui.selectable.js
ui/jquery.ui.sortable.js

index 34fd20564dfe9ecb87205a5a60845a7b62d5f37b..7c6961af2aec68295610d3f4641d1996252d427e 100644 (file)
@@ -6,7 +6,6 @@ TestHelpers.commonWidgetTests( "draggable", {
                cancel: "input,textarea,button,select,option",
                connectToSortable: false,
                containment: false,
-               create: null,
                cursor: "auto",
                cursorAt: false,
                delay: 0,
@@ -28,6 +27,12 @@ TestHelpers.commonWidgetTests( "draggable", {
                snapMode: "both",
                snapTolerance: 20,
                stack: false,
-               zIndex: false
+               zIndex: false,
+
+               // callbacks
+               create: null,
+               drag: null,
+               start: null,
+               stop: null
        }
 });
index d86afe3dd2ac3fcb4e6e09cef7ff67084c21bd1b..c112def3cf437128b1f8a3c13e421188b6750824 100644 (file)
@@ -3,11 +3,18 @@ TestHelpers.commonWidgetTests( "droppable", {
                accept: "*",
                activeClass: false,
                addClasses: true,
-               create: null,
                disabled: false,
                greedy: false,
                hoverClass: false,
                scope: "default",
-               tolerance: "intersect"
+               tolerance: "intersect",
+
+               // callbacks
+               activate: null,
+               create: null,
+               deactivate: null,
+               drop: null,
+               out: null,
+               over: null
        }
 });
index 6758214ad8ad31ca4396468a69f2f52961b5761b..c261ac5b9c895d030827f8458dd25d374a66147e 100644 (file)
@@ -1,4 +1,4 @@
-TestHelpers.commonWidgetTests("resizable", {
+TestHelpers.commonWidgetTests( "resizable", {
        defaults: {
                alsoResize: false,
                animate: false,
@@ -22,6 +22,9 @@ TestHelpers.commonWidgetTests("resizable", {
                zIndex: 90,
 
                // callbacks
-               create: null
+               create: null,
+               resize: null,
+               start: null,
+               stop: null
        }
 });
index 00bbedc615f0cf67eb19ab4dea55b0a9a1645781..d00a47be59386d0fa74790759919282220d4c932 100644 (file)
@@ -3,11 +3,19 @@ TestHelpers.commonWidgetTests("selectable", {
                appendTo: "body",
                autoRefresh: true,
                cancel: "input,textarea,button,select,option",
-               create: null,
                delay: 0,
                disabled: false,
                distance: 0,
                filter: "*",
-               tolerance: "touch"
+               tolerance: "touch",
+
+               // callbacks
+               create: null,
+               selected: null,
+               selecting: null,
+               start: null,
+               stop: null,
+               unselected: null,
+               unselecting: null
        }
 });
index 0a8e9f2b9848b7c7a1920a6d4d674d44539ea3d8..86850a658c3c77bb100e122664e50df3d97ec645 100644 (file)
@@ -5,7 +5,6 @@ TestHelpers.commonWidgetTests( "sortable", {
                cancel: "input,textarea,button,select,option",
                connectWith: false,
                containment: false,
-               create: null,
                cursor: "auto",
                cursorAt: false,
                delay: 0,
@@ -26,6 +25,21 @@ TestHelpers.commonWidgetTests( "sortable", {
                scrollSpeed: 20,
                scope: "default",
                tolerance: "intersect",
-               zIndex: 1000
+               zIndex: 1000,
+
+               // callbacks
+               activate: null,
+               beforeStop: null,
+               change: null,
+               create: null,
+               deactivate: null,
+               out: null,
+               over: null,
+               receive: null,
+               remove: null,
+               sort: null,
+               start: null,
+               stop: null,
+               update: null
        }
 });
index 9e3267aed66d72dbd93c017a4a09b736ed17c102..ba81e9f2286482a8587b6af3d1af987a474e3349 100644 (file)
@@ -42,7 +42,12 @@ $.widget("ui.draggable", $.ui.mouse, {
                snapMode: "both",
                snapTolerance: 20,
                stack: false,
-               zIndex: false
+               zIndex: false,
+
+               // callbacks
+               drag: null,
+               start: null,
+               stop: null
        },
        _create: function() {
 
index 35a2601510a7fed33a5cf462ccecaafdf11da5b0..0f75774a700ba3a235f0ee30ef94b6de481999d8 100644 (file)
@@ -30,7 +30,14 @@ $.widget("ui.droppable", {
                greedy: false,
                hoverClass: false,
                scope: "default",
-               tolerance: "intersect"
+               tolerance: "intersect",
+
+               // callbacks
+               activate: null,
+               deactivate: null,
+               drop: null,
+               out: null,
+               over: null
        },
        _create: function() {
 
index ce3efeb9d6a3a1716b7e6b4d3fc288ff7fae5189..c255ccc5e995090d89063d63e8ae5a4b576fabf4 100644 (file)
@@ -43,7 +43,12 @@ $.widget("ui.resizable", $.ui.mouse, {
                minHeight: 10,
                minWidth: 10,
                // See #7960
-               zIndex: 90
+               zIndex: 90,
+
+               // callbacks
+               resize: null,
+               start: null,
+               stop: null
        },
        _create: function() {
 
index 8e6d03c1ff95816cfb4dca8ac89b337057793a8e..8a6db9007e0747b211c0165ec2a8435959799d1e 100644 (file)
@@ -22,7 +22,15 @@ $.widget("ui.selectable", $.ui.mouse, {
                autoRefresh: true,
                distance: 0,
                filter: "*",
-               tolerance: "touch"
+               tolerance: "touch",
+
+               // callbacks
+               selected: null,
+               selecting: null,
+               start: null,
+               stop: null,
+               unselected: null,
+               unselecting: null
        },
        _create: function() {
                var selectees,
index f13a1d6bd3cf77bc165f780e7b611245f8831830..ccd293fbd37ed578797705c80775e5a9c48cc68f 100644 (file)
@@ -47,7 +47,21 @@ $.widget("ui.sortable", $.ui.mouse, {
                scrollSpeed: 20,
                scope: "default",
                tolerance: "intersect",
-               zIndex: 1000
+               zIndex: 1000,
+
+               // callbacks
+               activate: null,
+               beforeStop: null,
+               change: null,
+               deactivate: null,
+               out: null,
+               over: null,
+               receive: null,
+               remove: null,
+               sort: null,
+               start: null,
+               stop: null,
+               update: null
        },
        _create: function() {