From c4a99f521b2bccf23c97c0732779dc70f70f82de Mon Sep 17 00:00:00 2001 From: Paul Bakaus Date: Mon, 7 Jul 2008 07:39:12 +0000 Subject: 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) --- ui/ui.draggable.js | 2 +- ui/ui.resizable.js | 2 +- ui/ui.selectable.js | 2 +- ui/ui.sortable.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'ui') 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; -- cgit v1.2.3