Skip to content
Permalink
Browse files

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)
  • Loading branch information
Paul Bakaus
Paul Bakaus committed Jul 7, 2008
1 parent 8814c8d commit c4a99f521b2bccf23c97c0732779dc70f70f82de
Showing with 4 additions and 4 deletions.
  1. +1 −1 ui/ui.draggable.js
  2. +1 −1 ui/ui.resizable.js
  3. +1 −1 ui/ui.selectable.js
  4. +1 −1 ui/ui.sortable.js
@@ -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;

0 comments on commit c4a99f5

Please sign in to comment.
You can’t perform that action at this time.