mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00: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:
parent
8814c8dc03
commit
c4a99f521b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user