diff options
author | Eduardo Lundgren <eduardolundgren@gmail.com> | 2009-02-09 03:59:16 +0000 |
---|---|---|
committer | Eduardo Lundgren <eduardolundgren@gmail.com> | 2009-02-09 03:59:16 +0000 |
commit | 43de7e0e50bc4e6c9f5e439405a6481713a94b44 (patch) | |
tree | 01ef1654737120d424b18d8fd3bcef6885f255be /ui/ui.resizable.js | |
parent | 78e8a1b7890a0c650e4b6d339d91aa20d10260c0 (diff) | |
download | jquery-ui-43de7e0e50bc4e6c9f5e439405a6481713a94b44.tar.gz jquery-ui-43de7e0e50bc4e6c9f5e439405a6481713a94b44.zip |
Resizable: Fixed #4092 - preserveCursor option should be removed
Diffstat (limited to 'ui/ui.resizable.js')
-rw-r--r-- | ui/ui.resizable.js | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/ui/ui.resizable.js b/ui/ui.resizable.js index 144f3fdf3..e4d0d50d1 100644 --- a/ui/ui.resizable.js +++ b/ui/ui.resizable.js @@ -243,10 +243,8 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, { //Aspect Ratio this.aspectRatio = (typeof o.aspectRatio == 'number') ? o.aspectRatio : ((this.originalSize.width / this.originalSize.height) || 1); - if (o.preserveCursor) { - var cursor = $('.ui-resizable-' + this.axis).css('cursor'); - $('body').css('cursor', cursor == 'auto' ? this.axis + '-resize' : cursor); - } + var cursor = $('.ui-resizable-' + this.axis).css('cursor'); + $('body').css('cursor', cursor == 'auto' ? this.axis + '-resize' : cursor); this._propagate("start", event); return true; @@ -309,8 +307,7 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, { if (this._helper && !o.animate) this._proportionallyResize(); } - if (o.preserveCursor) - $('body').css('cursor', 'auto'); + $('body').css('cursor', 'auto'); this._propagate("stop", event); @@ -514,7 +511,6 @@ $.extend($.ui.resizable, { maxWidth: null, minHeight: 10, minWidth: 10, - preserveCursor: true, preventDefault: true, proportionallyResize: false, zIndex: 1000 |