aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorPaul Bakaus <paul.bakaus@googlemail.com>2008-07-07 07:39:12 +0000
committerPaul Bakaus <paul.bakaus@googlemail.com>2008-07-07 07:39:12 +0000
commitc4a99f521b2bccf23c97c0732779dc70f70f82de (patch)
treeb44202a4c823ee91166b9e7617be86cfca1df5db /ui
parent8814c8dc033a5732ce9cb908f3202773cfb356ac (diff)
downloadjquery-ui-c4a99f521b2bccf23c97c0732779dc70f70f82de.tar.gz
jquery-ui-c4a99f521b2bccf23c97c0732779dc70f70f82de.zip
prevent overriding/changing the actual $.ui.mouse object by extending it - this was evil (i.e. caused draggables to have the mouseCapture method of sortables, and therefore failing to work)
Diffstat (limited to 'ui')
-rw-r--r--ui/ui.draggable.js2
-rw-r--r--ui/ui.resizable.js2
-rw-r--r--ui/ui.selectable.js2
-rw-r--r--ui/ui.sortable.js2
4 files changed, 4 insertions, 4 deletions
diff --git a/ui/ui.draggable.js b/ui/ui.draggable.js
index 69f92b0d7..31aecff58 100644
--- a/ui/ui.draggable.js
+++ b/ui/ui.draggable.js
@@ -12,7 +12,7 @@
*/
(function($) {
-$.widget("ui.draggable", $.extend($.ui.mouse, {
+$.widget("ui.draggable", $.extend({}, $.ui.mouse, {
init: function() {
//Initialize needed constants
diff --git a/ui/ui.resizable.js b/ui/ui.resizable.js
index 55a279b8f..ecddd9a1e 100644
--- a/ui/ui.resizable.js
+++ b/ui/ui.resizable.js
@@ -12,7 +12,7 @@
*/
(function($) {
-$.widget("ui.resizable", $.extend($.ui.mouse, {
+$.widget("ui.resizable", $.extend({}, $.ui.mouse, {
init: function() {
var self = this, o = this.options;
diff --git a/ui/ui.selectable.js b/ui/ui.selectable.js
index db69a488a..814e7d48e 100644
--- a/ui/ui.selectable.js
+++ b/ui/ui.selectable.js
@@ -12,7 +12,7 @@
*/
(function($) {
-$.widget("ui.selectable", $.extend($.ui.mouse, {
+$.widget("ui.selectable", $.extend({}, $.ui.mouse, {
init: function() {
var self = this;
diff --git a/ui/ui.sortable.js b/ui/ui.sortable.js
index 1503c60d3..0fd46d152 100644
--- a/ui/ui.sortable.js
+++ b/ui/ui.sortable.js
@@ -24,7 +24,7 @@ function contains(a, b) {
return false;
};
-$.widget("ui.sortable", $.extend($.ui.mouse, {
+$.widget("ui.sortable", $.extend({}, $.ui.mouse, {
init: function() {
var o = this.options;