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)

This commit is contained in:
Paul Bakaus 2008-07-07 07:39:12 +00:00
parent 8814c8dc03
commit c4a99f521b
4 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@
*/
(function($) {
$.widget("ui.draggable", $.extend($.ui.mouse, {
$.widget("ui.draggable", $.extend({}, $.ui.mouse, {
init: function() {
//Initialize needed constants

View File

@ -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;

View File

@ -12,7 +12,7 @@
*/
(function($) {
$.widget("ui.selectable", $.extend($.ui.mouse, {
$.widget("ui.selectable", $.extend({}, $.ui.mouse, {
init: function() {
var self = this;

View File

@ -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;