diff options
author | Scott González <scott.gonzalez@gmail.com> | 2008-09-19 14:20:14 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2008-09-19 14:20:14 +0000 |
commit | 7c2e7965e90896b3ccf8525aeebfe2b9242203ff (patch) | |
tree | aec37d89461d5d9b14979523f3f82b8b7440f97c /ui/ui.selectable.js | |
parent | 8d04c3594c4bd56ee2b86068e002b7566359df14 (diff) | |
download | jquery-ui-7c2e7965e90896b3ccf8525aeebfe2b9242203ff.tar.gz jquery-ui-7c2e7965e90896b3ccf8525aeebfe2b9242203ff.zip |
Reverted r695.
Diffstat (limited to 'ui/ui.selectable.js')
-rw-r--r-- | ui/ui.selectable.js | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/ui/ui.selectable.js b/ui/ui.selectable.js index 5c2f4b2a5..7d8d8cc2b 100644 --- a/ui/ui.selectable.js +++ b/ui/ui.selectable.js @@ -4,7 +4,7 @@ * Copyright (c) 2008 Richard D. Worth (rdworth.org) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. - * + * * http://docs.jquery.com/UI/Selectables * * Depends: @@ -15,9 +15,9 @@ $.widget("ui.selectable", $.extend({}, $.ui.mouse, { _init: function() { var self = this; - + this.element.addClass("ui-selectable"); - + this.dragged = false; // cache selectee children based on filter @@ -44,9 +44,9 @@ $.widget("ui.selectable", $.extend({}, $.ui.mouse, { this.refresh(); this.selectees = selectees.addClass("ui-selectee"); - + this._mouseInit(); - + this.helper = $(document.createElement('div')) .css({border:'1px dotted black'}) .addClass("ui-selectable-helper"); @@ -67,9 +67,9 @@ $.widget("ui.selectable", $.extend({}, $.ui.mouse, { }, _mouseStart: function(e) { var self = this; - + this.opos = [e.pageX, e.pageY]; - + if (this.options.disabled) return; @@ -114,7 +114,7 @@ $.widget("ui.selectable", $.extend({}, $.ui.mouse, { }], options.unselecting); } }); - + var isSelectee = false; $(e.target).parents().andSelf().each(function() { if($.data(this, "selectable-item")) isSelectee = true; @@ -124,7 +124,7 @@ $.widget("ui.selectable", $.extend({}, $.ui.mouse, { _mouseDrag: function(e) { var self = this; this.dragged = true; - + if (this.options.disabled) return; @@ -207,14 +207,14 @@ $.widget("ui.selectable", $.extend({}, $.ui.mouse, { } } }); - + return false; }, _mouseStop: function(e) { var self = this; - + this.dragged = false; - + var options = this.options; $('.ui-unselecting', this.element[0]).each(function() { @@ -244,9 +244,9 @@ $.widget("ui.selectable", $.extend({}, $.ui.mouse, { selectable: self.element[0], options: this.options }], this.options.stop); - + this.helper.remove(); - + return false; } })); |