aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2008-11-01 10:32:01 +0000
committerRichard Worth <rdworth@gmail.com>2008-11-01 10:32:01 +0000
commit8ce1db36db2fc1830960db39c596e70ff9e25d2b (patch)
tree4e354dd2eeaabe75aef447400ca546fa832a82d0
parent19c534188a9e5784571248ac0054daba8ea71ed2 (diff)
downloadjquery-ui-8ce1db36db2fc1830960db39c596e70ff9e25d2b.tar.gz
jquery-ui-8ce1db36db2fc1830960db39c596e70ff9e25d2b.zip
resizable: defined defaults
-rw-r--r--ui/ui.resizable.js27
1 files changed, 19 insertions, 8 deletions
diff --git a/ui/ui.resizable.js b/ui/ui.resizable.js
index 82a39e82d..d480296a7 100644
--- a/ui/ui.resizable.js
+++ b/ui/ui.resizable.js
@@ -518,18 +518,28 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
$.extend($.ui.resizable, {
version: "@VERSION",
defaults: {
+ alsoResize: false,
+ animate: false,
+ animateDuration: "slow",
+ animateEasing: "swing",
+ aspectRatio: false,
+ autoHide: false,
cancel: ":input",
+ containment: false,
+ disableSelection: true,
distance: 1,
delay: 0,
- preventDefault: true,
- transparent: false,
- minWidth: 10,
+ ghost: false,
+ grid: false,
+ knobHandles: false,
+ maxHeight: null,
+ maxWidth: null,
minHeight: 10,
- aspectRatio: false,
- disableSelection: true,
+ minWidth: 10,
preserveCursor: true,
- autoHide: false,
- knobHandles: false
+ preventDefault: true,
+ proportionallyResize: false,
+ transparent: false
}
});
@@ -666,7 +676,8 @@ $.ui.plugin.add("resizable", "animate", {
self.element.animate(
$.extend(style, top && left ? { top: top, left: left } : {}), {
- duration: o.animateDuration || "slow", easing: o.animateEasing || "swing",
+ duration: o.animateDuration,
+ easing: o.animateEasing,
step: function() {
var data = {