]> source.dussan.org Git - jquery-ui.git/commitdiff
Fixed event prefix in all plugins that don't use the default prefix.
authorScott González <scott.gonzalez@gmail.com>
Fri, 5 Feb 2010 03:03:50 +0000 (03:03 +0000)
committerScott González <scott.gonzalez@gmail.com>
Fri, 5 Feb 2010 03:03:50 +0000 (03:03 +0000)
Fixes #5134 - Events not being triggered for drag and drop.

ui/jquery.ui.draggable.js
ui/jquery.ui.droppable.js
ui/jquery.ui.resizable.js
ui/jquery.ui.slider.js
ui/jquery.ui.sortable.js

index 1f921a910c69134af405e731326ce095988c18cb..4ecc3e29579951b2caef811ca72c6ed1e18832fc 100644 (file)
@@ -15,6 +15,7 @@
 (function($) {
 
 $.widget("ui.draggable", $.ui.mouse, {
+       widgetEventPrefix: "drag",
        options: {
                addClasses: true,
                appendTo: "parent",
@@ -467,8 +468,7 @@ $.widget("ui.draggable", $.ui.mouse, {
 });
 
 $.extend($.ui.draggable, {
-       version: "@VERSION",
-       eventPrefix: "drag"
+       version: "@VERSION"
 });
 
 $.ui.plugin.add("draggable", "connectToSortable", {
index e8d17da23d75f28d63bd1ad50138e838a943abfe..4cd7f56e26404fbdfc390154186f97114674dc7b 100644 (file)
@@ -16,6 +16,7 @@
 (function($) {
 
 $.widget("ui.droppable", {
+       widgetEventPrefix: "drop",
        options: {
                accept: '*',
                activeClass: false,
@@ -146,8 +147,7 @@ $.widget("ui.droppable", {
 });
 
 $.extend($.ui.droppable, {
-       version: "@VERSION",
-       eventPrefix: 'drop'
+       version: "@VERSION"
 });
 
 $.ui.intersect = function(draggable, droppable, toleranceMode) {
index 3512b49be92bc094efc8fe3d24db69ae210c213a..4ba723884b3e2f2fec63e3f93fba923d802f3798 100644 (file)
@@ -15,6 +15,7 @@
 (function($) {
 
 $.widget("ui.resizable", $.ui.mouse, {
+       widgetEventPrefix: "resize",
        options: {
                alsoResize: false,
                animate: false,
@@ -518,8 +519,7 @@ $.widget("ui.resizable", $.ui.mouse, {
 });
 
 $.extend($.ui.resizable, {
-       version: "@VERSION",
-       eventPrefix: "resize"
+       version: "@VERSION"
 });
 
 /*
index 9f0e8c88f71b5c1996272499083ba2244c204b91..fec416b26edbdc686ca0dd7a43086a28dfdac31c 100644 (file)
@@ -20,6 +20,7 @@
 var numPages = 5;
 
 $.widget("ui.slider", $.ui.mouse, {
+       widgetEventPrefix: "slide"
        options: {
                animate: false,
                distance: 0,
@@ -607,8 +608,7 @@ $.widget("ui.slider", $.ui.mouse, {
 });
 
 $.extend($.ui.slider, {
-       version: "@VERSION",
-       eventPrefix: "slide"
+       version: "@VERSION"
 });
 
 })(jQuery);
index 681032a02527bc874f854e38675c72bcc396bce1..66e4f00a401a7e87a345f1d97b06c29a8817fdef 100644 (file)
@@ -15,6 +15,7 @@
 (function($) {
 
 $.widget("ui.sortable", $.ui.mouse, {
+       widgetEventPrefix: "sort",
        options: {
                appendTo: "parent",
                axis: false,
@@ -1045,8 +1046,7 @@ $.widget("ui.sortable", $.ui.mouse, {
 });
 
 $.extend($.ui.sortable, {
-       version: "@VERSION",
-       eventPrefix: "sort"
+       version: "@VERSION"
 });
 
 })(jQuery);