From 8634ba993ceec7c9bbd34b6e0e2a666494b385a4 Mon Sep 17 00:00:00 2001 From: Scott González Date: Tue, 9 Jun 2009 00:46:00 +0000 Subject: All mouse-based plugins: Extend $.ui.mouse.defaults. Changed $.ui.mouse.defaults.cancel to ":input,option" which is used by every plugin as its default. Fixes #4584 ($.ui.mouse.defaults never used). --- ui/ui.resizable.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'ui/ui.resizable.js') diff --git a/ui/ui.resizable.js b/ui/ui.resizable.js index 6e5691aea..847337b08 100644 --- a/ui/ui.resizable.js +++ b/ui/ui.resizable.js @@ -501,17 +501,14 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, { $.extend($.ui.resizable, { version: "@VERSION", eventPrefix: "resize", - defaults: { + defaults: $.extend({}, $.ui.mouse.defaults, { alsoResize: false, animate: false, animateDuration: "slow", animateEasing: "swing", aspectRatio: false, autoHide: false, - cancel: ":input,option", containment: false, - delay: 0, - distance: 1, ghost: false, grid: false, handles: "e,s,se", @@ -521,7 +518,7 @@ $.extend($.ui.resizable, { minHeight: 10, minWidth: 10, zIndex: 1000 - } + }) }); /* -- cgit v1.2.3