aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-02-05 03:03:50 +0000
committerScott González <scott.gonzalez@gmail.com>2010-02-05 03:03:50 +0000
commit9e02f801765abb57f426a8a3116b6bcaa2698126 (patch)
treee5e7e076eb701dfc3a1d19b2873ccd380627b5a0
parent0b976c4616bfe9c5a4fb976b338a226245cde835 (diff)
downloadjquery-ui-9e02f801765abb57f426a8a3116b6bcaa2698126.tar.gz
jquery-ui-9e02f801765abb57f426a8a3116b6bcaa2698126.zip
Fixed event prefix in all plugins that don't use the default prefix.
Fixes #5134 - Events not being triggered for drag and drop.
-rw-r--r--ui/jquery.ui.draggable.js4
-rw-r--r--ui/jquery.ui.droppable.js4
-rw-r--r--ui/jquery.ui.resizable.js4
-rw-r--r--ui/jquery.ui.slider.js4
-rw-r--r--ui/jquery.ui.sortable.js4
5 files changed, 10 insertions, 10 deletions
diff --git a/ui/jquery.ui.draggable.js b/ui/jquery.ui.draggable.js
index 1f921a910..4ecc3e295 100644
--- a/ui/jquery.ui.draggable.js
+++ b/ui/jquery.ui.draggable.js
@@ -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", {
diff --git a/ui/jquery.ui.droppable.js b/ui/jquery.ui.droppable.js
index e8d17da23..4cd7f56e2 100644
--- a/ui/jquery.ui.droppable.js
+++ b/ui/jquery.ui.droppable.js
@@ -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) {
diff --git a/ui/jquery.ui.resizable.js b/ui/jquery.ui.resizable.js
index 3512b49be..4ba723884 100644
--- a/ui/jquery.ui.resizable.js
+++ b/ui/jquery.ui.resizable.js
@@ -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"
});
/*
diff --git a/ui/jquery.ui.slider.js b/ui/jquery.ui.slider.js
index 9f0e8c88f..fec416b26 100644
--- a/ui/jquery.ui.slider.js
+++ b/ui/jquery.ui.slider.js
@@ -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);
diff --git a/ui/jquery.ui.sortable.js b/ui/jquery.ui.sortable.js
index 681032a02..66e4f00a4 100644
--- a/ui/jquery.ui.sortable.js
+++ b/ui/jquery.ui.sortable.js
@@ -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);