mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-02-08 21:24:57 -05:00
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:
@@ -12,7 +12,7 @@
|
||||
*/
|
||||
(function($) {
|
||||
|
||||
$.widget("ui.draggable", $.extend($.ui.mouse, {
|
||||
$.widget("ui.draggable", $.extend({}, $.ui.mouse, {
|
||||
init: function() {
|
||||
|
||||
//Initialize needed constants
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
*/
|
||||
(function($) {
|
||||
|
||||
$.widget("ui.selectable", $.extend($.ui.mouse, {
|
||||
$.widget("ui.selectable", $.extend({}, $.ui.mouse, {
|
||||
init: function() {
|
||||
var self = this;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user