]> source.dussan.org Git - jquery-ui.git/commitdiff
prevent overriding/changing the actual $.ui.mouse object by extending it - this was...
authorPaul Bakaus <paul.bakaus@googlemail.com>
Mon, 7 Jul 2008 07:39:12 +0000 (07:39 +0000)
committerPaul Bakaus <paul.bakaus@googlemail.com>
Mon, 7 Jul 2008 07:39:12 +0000 (07:39 +0000)
ui/ui.draggable.js
ui/ui.resizable.js
ui/ui.selectable.js
ui/ui.sortable.js

index 69f92b0d7e9123dbdadfe4ac5309a3b88b869bae..31aecff58cfa0ef52a0aac65cfbb6fc98a8d43cc 100644 (file)
@@ -12,7 +12,7 @@
  */
 (function($) {
 
-$.widget("ui.draggable", $.extend($.ui.mouse, {
+$.widget("ui.draggable", $.extend({}, $.ui.mouse, {
        init: function() {
                
                //Initialize needed constants
index 55a279b8ff994bd4fdd24e51ac5e9bbf9abfe339..ecddd9a1e9c4d86f9f1077464a2799bd20e1e55d 100644 (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;
index db69a488ad24b44e0b691e5f08bb3fea0ff03e9e..814e7d48e2f17c395a45bef5d4d1ed636855fad9 100644 (file)
@@ -12,7 +12,7 @@
  */
 (function($) {
 
-$.widget("ui.selectable", $.extend($.ui.mouse, {
+$.widget("ui.selectable", $.extend({}, $.ui.mouse, {
        init: function() {
                var self = this;
                
index 1503c60d3fe76743d4ac8b0041644f459c46722a..0fd46d152827da893a85423106319829fbebc879 100644 (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;