jquery-ui-rails-dox-fork 7.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (180) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +2 -0
  3. data/.gitmodules +3 -0
  4. data/.travis.yml +2 -0
  5. data/CONTRIBUTING.txt +30 -0
  6. data/Gemfile +3 -0
  7. data/History.md +172 -0
  8. data/License.txt +2 -0
  9. data/README.md +311 -0
  10. data/Rakefile +263 -0
  11. data/VERSIONS.md +41 -0
  12. data/app/assets/images/jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  13. data/app/assets/images/jquery-ui/ui-icons_444444_256x240.png +0 -0
  14. data/app/assets/images/jquery-ui/ui-icons_555555_256x240.png +0 -0
  15. data/app/assets/images/jquery-ui/ui-icons_777620_256x240.png +0 -0
  16. data/app/assets/images/jquery-ui/ui-icons_777777_256x240.png +0 -0
  17. data/app/assets/images/jquery-ui/ui-icons_cc0000_256x240.png +0 -0
  18. data/app/assets/images/jquery-ui/ui-icons_ffffff_256x240.png +0 -0
  19. data/app/assets/javascripts/jquery-ui/core.js +15 -0
  20. data/app/assets/javascripts/jquery-ui/data.js +45 -0
  21. data/app/assets/javascripts/jquery-ui/disable-selection.js +51 -0
  22. data/app/assets/javascripts/jquery-ui/effect.all.js +15 -0
  23. data/app/assets/javascripts/jquery-ui/effect.js +975 -0
  24. data/app/assets/javascripts/jquery-ui/effects/effect-blind.js +76 -0
  25. data/app/assets/javascripts/jquery-ui/effects/effect-bounce.js +116 -0
  26. data/app/assets/javascripts/jquery-ui/effects/effect-clip.js +71 -0
  27. data/app/assets/javascripts/jquery-ui/effects/effect-drop.js +75 -0
  28. data/app/assets/javascripts/jquery-ui/effects/effect-explode.js +117 -0
  29. data/app/assets/javascripts/jquery-ui/effects/effect-fade.js +53 -0
  30. data/app/assets/javascripts/jquery-ui/effects/effect-fold.js +95 -0
  31. data/app/assets/javascripts/jquery-ui/effects/effect-highlight.js +63 -0
  32. data/app/assets/javascripts/jquery-ui/effects/effect-puff.js +49 -0
  33. data/app/assets/javascripts/jquery-ui/effects/effect-pulsate.js +70 -0
  34. data/app/assets/javascripts/jquery-ui/effects/effect-scale.js +63 -0
  35. data/app/assets/javascripts/jquery-ui/effects/effect-shake.js +80 -0
  36. data/app/assets/javascripts/jquery-ui/effects/effect-size.js +199 -0
  37. data/app/assets/javascripts/jquery-ui/effects/effect-slide.js +82 -0
  38. data/app/assets/javascripts/jquery-ui/effects/effect-transfer.js +46 -0
  39. data/app/assets/javascripts/jquery-ui/focusable.js +89 -0
  40. data/app/assets/javascripts/jquery-ui/form-reset-mixin.js +83 -0
  41. data/app/assets/javascripts/jquery-ui/form.js +25 -0
  42. data/app/assets/javascripts/jquery-ui/i18n/datepicker-af.js +40 -0
  43. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar-DZ.js +42 -0
  44. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar.js +42 -0
  45. data/app/assets/javascripts/jquery-ui/i18n/datepicker-az.js +40 -0
  46. data/app/assets/javascripts/jquery-ui/i18n/datepicker-be.js +40 -0
  47. data/app/assets/javascripts/jquery-ui/i18n/datepicker-bg.js +41 -0
  48. data/app/assets/javascripts/jquery-ui/i18n/datepicker-bs.js +40 -0
  49. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ca.js +40 -0
  50. data/app/assets/javascripts/jquery-ui/i18n/datepicker-cs.js +40 -0
  51. data/app/assets/javascripts/jquery-ui/i18n/datepicker-cy-GB.js +48 -0
  52. data/app/assets/javascripts/jquery-ui/i18n/datepicker-da.js +40 -0
  53. data/app/assets/javascripts/jquery-ui/i18n/datepicker-de-AT.js +41 -0
  54. data/app/assets/javascripts/jquery-ui/i18n/datepicker-de.js +40 -0
  55. data/app/assets/javascripts/jquery-ui/i18n/datepicker-el.js +40 -0
  56. data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-AU.js +40 -0
  57. data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-GB.js +40 -0
  58. data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-NZ.js +40 -0
  59. data/app/assets/javascripts/jquery-ui/i18n/datepicker-eo.js +40 -0
  60. data/app/assets/javascripts/jquery-ui/i18n/datepicker-es.js +40 -0
  61. data/app/assets/javascripts/jquery-ui/i18n/datepicker-et.js +48 -0
  62. data/app/assets/javascripts/jquery-ui/i18n/datepicker-eu.js +39 -0
  63. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fa.js +76 -0
  64. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fi.js +40 -0
  65. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fo.js +48 -0
  66. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CA.js +40 -0
  67. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CH.js +40 -0
  68. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr.js +42 -0
  69. data/app/assets/javascripts/jquery-ui/i18n/datepicker-gl.js +40 -0
  70. data/app/assets/javascripts/jquery-ui/i18n/datepicker-he.js +40 -0
  71. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hi.js +40 -0
  72. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hr.js +40 -0
  73. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hu.js +39 -0
  74. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hy.js +40 -0
  75. data/app/assets/javascripts/jquery-ui/i18n/datepicker-id.js +41 -0
  76. data/app/assets/javascripts/jquery-ui/i18n/datepicker-is.js +48 -0
  77. data/app/assets/javascripts/jquery-ui/i18n/datepicker-it-CH.js +40 -0
  78. data/app/assets/javascripts/jquery-ui/i18n/datepicker-it.js +40 -0
  79. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ja.js +40 -0
  80. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ka.js +51 -0
  81. data/app/assets/javascripts/jquery-ui/i18n/datepicker-kk.js +40 -0
  82. data/app/assets/javascripts/jquery-ui/i18n/datepicker-km.js +40 -0
  83. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ko.js +40 -0
  84. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ky.js +41 -0
  85. data/app/assets/javascripts/jquery-ui/i18n/datepicker-lb.js +48 -0
  86. data/app/assets/javascripts/jquery-ui/i18n/datepicker-lt.js +48 -0
  87. data/app/assets/javascripts/jquery-ui/i18n/datepicker-lv.js +48 -0
  88. data/app/assets/javascripts/jquery-ui/i18n/datepicker-mk.js +40 -0
  89. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ml.js +40 -0
  90. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ms.js +40 -0
  91. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nb.js +52 -0
  92. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl-BE.js +40 -0
  93. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl.js +40 -0
  94. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nn.js +52 -0
  95. data/app/assets/javascripts/jquery-ui/i18n/datepicker-no.js +53 -0
  96. data/app/assets/javascripts/jquery-ui/i18n/datepicker-pl.js +40 -0
  97. data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt-BR.js +48 -0
  98. data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt.js +47 -0
  99. data/app/assets/javascripts/jquery-ui/i18n/datepicker-rm.js +64 -0
  100. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ro.js +43 -0
  101. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ru.js +40 -0
  102. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sk.js +40 -0
  103. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sl.js +41 -0
  104. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sq.js +40 -0
  105. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr-SR.js +40 -0
  106. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr.js +40 -0
  107. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sv.js +40 -0
  108. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ta.js +56 -0
  109. data/app/assets/javascripts/jquery-ui/i18n/datepicker-th.js +40 -0
  110. data/app/assets/javascripts/jquery-ui/i18n/datepicker-tj.js +40 -0
  111. data/app/assets/javascripts/jquery-ui/i18n/datepicker-tr.js +40 -0
  112. data/app/assets/javascripts/jquery-ui/i18n/datepicker-uk.js +41 -0
  113. data/app/assets/javascripts/jquery-ui/i18n/datepicker-vi.js +40 -0
  114. data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-CN.js +40 -0
  115. data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-HK.js +40 -0
  116. data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-TW.js +40 -0
  117. data/app/assets/javascripts/jquery-ui/ie.js +20 -0
  118. data/app/assets/javascripts/jquery-ui/jquery-patch.js +91 -0
  119. data/app/assets/javascripts/jquery-ui/jquery-var-for-color.js +24 -0
  120. data/app/assets/javascripts/jquery-ui/keycode.js +51 -0
  121. data/app/assets/javascripts/jquery-ui/labels.js +71 -0
  122. data/app/assets/javascripts/jquery-ui/plugin.js +49 -0
  123. data/app/assets/javascripts/jquery-ui/position.js +513 -0
  124. data/app/assets/javascripts/jquery-ui/safe-active-element.js +46 -0
  125. data/app/assets/javascripts/jquery-ui/safe-blur.js +27 -0
  126. data/app/assets/javascripts/jquery-ui/scroll-parent.js +50 -0
  127. data/app/assets/javascripts/jquery-ui/tabbable.js +41 -0
  128. data/app/assets/javascripts/jquery-ui/unique-id.js +54 -0
  129. data/app/assets/javascripts/jquery-ui/vendor/jquery-color/jquery.color.js +722 -0
  130. data/app/assets/javascripts/jquery-ui/version.js +20 -0
  131. data/app/assets/javascripts/jquery-ui/widget.js +758 -0
  132. data/app/assets/javascripts/jquery-ui/widgets/accordion.js +627 -0
  133. data/app/assets/javascripts/jquery-ui/widgets/autocomplete.js +685 -0
  134. data/app/assets/javascripts/jquery-ui/widgets/button.js +454 -0
  135. data/app/assets/javascripts/jquery-ui/widgets/checkboxradio.js +294 -0
  136. data/app/assets/javascripts/jquery-ui/widgets/controlgroup.js +304 -0
  137. data/app/assets/javascripts/jquery-ui/widgets/datepicker.js +2243 -0
  138. data/app/assets/javascripts/jquery-ui/widgets/dialog.js +968 -0
  139. data/app/assets/javascripts/jquery-ui/widgets/draggable.js +1268 -0
  140. data/app/assets/javascripts/jquery-ui/widgets/droppable.js +508 -0
  141. data/app/assets/javascripts/jquery-ui/widgets/menu.js +720 -0
  142. data/app/assets/javascripts/jquery-ui/widgets/mouse.js +241 -0
  143. data/app/assets/javascripts/jquery-ui/widgets/progressbar.js +184 -0
  144. data/app/assets/javascripts/jquery-ui/widgets/resizable.js +1225 -0
  145. data/app/assets/javascripts/jquery-ui/widgets/selectable.js +321 -0
  146. data/app/assets/javascripts/jquery-ui/widgets/selectmenu.js +702 -0
  147. data/app/assets/javascripts/jquery-ui/widgets/slider.js +760 -0
  148. data/app/assets/javascripts/jquery-ui/widgets/sortable.js +1622 -0
  149. data/app/assets/javascripts/jquery-ui/widgets/spinner.js +588 -0
  150. data/app/assets/javascripts/jquery-ui/widgets/tabs.js +931 -0
  151. data/app/assets/javascripts/jquery-ui/widgets/tooltip.js +533 -0
  152. data/app/assets/javascripts/jquery-ui.js +57 -0
  153. data/app/assets/stylesheets/jquery-ui/accordion.css +26 -0
  154. data/app/assets/stylesheets/jquery-ui/all.css +14 -0
  155. data/app/assets/stylesheets/jquery-ui/autocomplete.css +19 -0
  156. data/app/assets/stylesheets/jquery-ui/base.css +32 -0
  157. data/app/assets/stylesheets/jquery-ui/button.css +85 -0
  158. data/app/assets/stylesheets/jquery-ui/checkboxradio.css +37 -0
  159. data/app/assets/stylesheets/jquery-ui/controlgroup.css +68 -0
  160. data/app/assets/stylesheets/jquery-ui/core.css +100 -0
  161. data/app/assets/stylesheets/jquery-ui/datepicker.css +188 -0
  162. data/app/assets/stylesheets/jquery-ui/dialog.css +104 -0
  163. data/app/assets/stylesheets/jquery-ui/draggable.css +15 -0
  164. data/app/assets/stylesheets/jquery-ui/menu.css +67 -0
  165. data/app/assets/stylesheets/jquery-ui/progressbar.css +31 -0
  166. data/app/assets/stylesheets/jquery-ui/resizable.css +81 -0
  167. data/app/assets/stylesheets/jquery-ui/selectable.css +20 -0
  168. data/app/assets/stylesheets/jquery-ui/selectmenu.css +53 -0
  169. data/app/assets/stylesheets/jquery-ui/slider.css +78 -0
  170. data/app/assets/stylesheets/jquery-ui/sortable.css +15 -0
  171. data/app/assets/stylesheets/jquery-ui/spinner.css +55 -0
  172. data/app/assets/stylesheets/jquery-ui/tabs.css +54 -0
  173. data/app/assets/stylesheets/jquery-ui/theme.css.erb +456 -0
  174. data/app/assets/stylesheets/jquery-ui/tooltip.css +22 -0
  175. data/app/assets/stylesheets/jquery-ui.css +1 -0
  176. data/lib/jquery/ui/rails/engine.rb +8 -0
  177. data/lib/jquery/ui/rails/version.rb +8 -0
  178. data/lib/jquery/ui/rails.rb +2 -0
  179. data/lib/jquery-ui-rails.rb +1 -0
  180. metadata +250 -0
@@ -0,0 +1,321 @@
1
+ //= require jquery-ui/widgets/mouse
2
+ //= require jquery-ui/version
3
+ //= require jquery-ui/widget
4
+
5
+ /*!
6
+ * jQuery UI Selectable 1.13.2
7
+ * http://jqueryui.com
8
+ *
9
+ * Copyright jQuery Foundation and other contributors
10
+ * Released under the MIT license.
11
+ * http://jquery.org/license
12
+ */
13
+
14
+ //>>label: Selectable
15
+ //>>group: Interactions
16
+ //>>description: Allows groups of elements to be selected with the mouse.
17
+ //>>docs: http://api.jqueryui.com/selectable/
18
+ //>>demos: http://jqueryui.com/selectable/
19
+ //>>css.structure: ../../themes/base/selectable.css
20
+
21
+ ( function( factory ) {
22
+ "use strict";
23
+
24
+ if ( typeof define === "function" && define.amd ) {
25
+
26
+ // AMD. Register as an anonymous module.
27
+ define( [
28
+ "jquery",
29
+ "./mouse",
30
+ "../version",
31
+ "../widget"
32
+ ], factory );
33
+ } else {
34
+
35
+ // Browser globals
36
+ factory( jQuery );
37
+ }
38
+ } )( function( $ ) {
39
+ "use strict";
40
+
41
+ return $.widget( "ui.selectable", $.ui.mouse, {
42
+ version: "1.13.2",
43
+ options: {
44
+ appendTo: "body",
45
+ autoRefresh: true,
46
+ distance: 0,
47
+ filter: "*",
48
+ tolerance: "touch",
49
+
50
+ // Callbacks
51
+ selected: null,
52
+ selecting: null,
53
+ start: null,
54
+ stop: null,
55
+ unselected: null,
56
+ unselecting: null
57
+ },
58
+ _create: function() {
59
+ var that = this;
60
+
61
+ this._addClass( "ui-selectable" );
62
+
63
+ this.dragged = false;
64
+
65
+ // Cache selectee children based on filter
66
+ this.refresh = function() {
67
+ that.elementPos = $( that.element[ 0 ] ).offset();
68
+ that.selectees = $( that.options.filter, that.element[ 0 ] );
69
+ that._addClass( that.selectees, "ui-selectee" );
70
+ that.selectees.each( function() {
71
+ var $this = $( this ),
72
+ selecteeOffset = $this.offset(),
73
+ pos = {
74
+ left: selecteeOffset.left - that.elementPos.left,
75
+ top: selecteeOffset.top - that.elementPos.top
76
+ };
77
+ $.data( this, "selectable-item", {
78
+ element: this,
79
+ $element: $this,
80
+ left: pos.left,
81
+ top: pos.top,
82
+ right: pos.left + $this.outerWidth(),
83
+ bottom: pos.top + $this.outerHeight(),
84
+ startselected: false,
85
+ selected: $this.hasClass( "ui-selected" ),
86
+ selecting: $this.hasClass( "ui-selecting" ),
87
+ unselecting: $this.hasClass( "ui-unselecting" )
88
+ } );
89
+ } );
90
+ };
91
+ this.refresh();
92
+
93
+ this._mouseInit();
94
+
95
+ this.helper = $( "<div>" );
96
+ this._addClass( this.helper, "ui-selectable-helper" );
97
+ },
98
+
99
+ _destroy: function() {
100
+ this.selectees.removeData( "selectable-item" );
101
+ this._mouseDestroy();
102
+ },
103
+
104
+ _mouseStart: function( event ) {
105
+ var that = this,
106
+ options = this.options;
107
+
108
+ this.opos = [ event.pageX, event.pageY ];
109
+ this.elementPos = $( this.element[ 0 ] ).offset();
110
+
111
+ if ( this.options.disabled ) {
112
+ return;
113
+ }
114
+
115
+ this.selectees = $( options.filter, this.element[ 0 ] );
116
+
117
+ this._trigger( "start", event );
118
+
119
+ $( options.appendTo ).append( this.helper );
120
+
121
+ // position helper (lasso)
122
+ this.helper.css( {
123
+ "left": event.pageX,
124
+ "top": event.pageY,
125
+ "width": 0,
126
+ "height": 0
127
+ } );
128
+
129
+ if ( options.autoRefresh ) {
130
+ this.refresh();
131
+ }
132
+
133
+ this.selectees.filter( ".ui-selected" ).each( function() {
134
+ var selectee = $.data( this, "selectable-item" );
135
+ selectee.startselected = true;
136
+ if ( !event.metaKey && !event.ctrlKey ) {
137
+ that._removeClass( selectee.$element, "ui-selected" );
138
+ selectee.selected = false;
139
+ that._addClass( selectee.$element, "ui-unselecting" );
140
+ selectee.unselecting = true;
141
+
142
+ // selectable UNSELECTING callback
143
+ that._trigger( "unselecting", event, {
144
+ unselecting: selectee.element
145
+ } );
146
+ }
147
+ } );
148
+
149
+ $( event.target ).parents().addBack().each( function() {
150
+ var doSelect,
151
+ selectee = $.data( this, "selectable-item" );
152
+ if ( selectee ) {
153
+ doSelect = ( !event.metaKey && !event.ctrlKey ) ||
154
+ !selectee.$element.hasClass( "ui-selected" );
155
+ that._removeClass( selectee.$element, doSelect ? "ui-unselecting" : "ui-selected" )
156
+ ._addClass( selectee.$element, doSelect ? "ui-selecting" : "ui-unselecting" );
157
+ selectee.unselecting = !doSelect;
158
+ selectee.selecting = doSelect;
159
+ selectee.selected = doSelect;
160
+
161
+ // selectable (UN)SELECTING callback
162
+ if ( doSelect ) {
163
+ that._trigger( "selecting", event, {
164
+ selecting: selectee.element
165
+ } );
166
+ } else {
167
+ that._trigger( "unselecting", event, {
168
+ unselecting: selectee.element
169
+ } );
170
+ }
171
+ return false;
172
+ }
173
+ } );
174
+
175
+ },
176
+
177
+ _mouseDrag: function( event ) {
178
+
179
+ this.dragged = true;
180
+
181
+ if ( this.options.disabled ) {
182
+ return;
183
+ }
184
+
185
+ var tmp,
186
+ that = this,
187
+ options = this.options,
188
+ x1 = this.opos[ 0 ],
189
+ y1 = this.opos[ 1 ],
190
+ x2 = event.pageX,
191
+ y2 = event.pageY;
192
+
193
+ if ( x1 > x2 ) {
194
+ tmp = x2; x2 = x1; x1 = tmp;
195
+ }
196
+ if ( y1 > y2 ) {
197
+ tmp = y2; y2 = y1; y1 = tmp;
198
+ }
199
+ this.helper.css( { left: x1, top: y1, width: x2 - x1, height: y2 - y1 } );
200
+
201
+ this.selectees.each( function() {
202
+ var selectee = $.data( this, "selectable-item" ),
203
+ hit = false,
204
+ offset = {};
205
+
206
+ //prevent helper from being selected if appendTo: selectable
207
+ if ( !selectee || selectee.element === that.element[ 0 ] ) {
208
+ return;
209
+ }
210
+
211
+ offset.left = selectee.left + that.elementPos.left;
212
+ offset.right = selectee.right + that.elementPos.left;
213
+ offset.top = selectee.top + that.elementPos.top;
214
+ offset.bottom = selectee.bottom + that.elementPos.top;
215
+
216
+ if ( options.tolerance === "touch" ) {
217
+ hit = ( !( offset.left > x2 || offset.right < x1 || offset.top > y2 ||
218
+ offset.bottom < y1 ) );
219
+ } else if ( options.tolerance === "fit" ) {
220
+ hit = ( offset.left > x1 && offset.right < x2 && offset.top > y1 &&
221
+ offset.bottom < y2 );
222
+ }
223
+
224
+ if ( hit ) {
225
+
226
+ // SELECT
227
+ if ( selectee.selected ) {
228
+ that._removeClass( selectee.$element, "ui-selected" );
229
+ selectee.selected = false;
230
+ }
231
+ if ( selectee.unselecting ) {
232
+ that._removeClass( selectee.$element, "ui-unselecting" );
233
+ selectee.unselecting = false;
234
+ }
235
+ if ( !selectee.selecting ) {
236
+ that._addClass( selectee.$element, "ui-selecting" );
237
+ selectee.selecting = true;
238
+
239
+ // selectable SELECTING callback
240
+ that._trigger( "selecting", event, {
241
+ selecting: selectee.element
242
+ } );
243
+ }
244
+ } else {
245
+
246
+ // UNSELECT
247
+ if ( selectee.selecting ) {
248
+ if ( ( event.metaKey || event.ctrlKey ) && selectee.startselected ) {
249
+ that._removeClass( selectee.$element, "ui-selecting" );
250
+ selectee.selecting = false;
251
+ that._addClass( selectee.$element, "ui-selected" );
252
+ selectee.selected = true;
253
+ } else {
254
+ that._removeClass( selectee.$element, "ui-selecting" );
255
+ selectee.selecting = false;
256
+ if ( selectee.startselected ) {
257
+ that._addClass( selectee.$element, "ui-unselecting" );
258
+ selectee.unselecting = true;
259
+ }
260
+
261
+ // selectable UNSELECTING callback
262
+ that._trigger( "unselecting", event, {
263
+ unselecting: selectee.element
264
+ } );
265
+ }
266
+ }
267
+ if ( selectee.selected ) {
268
+ if ( !event.metaKey && !event.ctrlKey && !selectee.startselected ) {
269
+ that._removeClass( selectee.$element, "ui-selected" );
270
+ selectee.selected = false;
271
+
272
+ that._addClass( selectee.$element, "ui-unselecting" );
273
+ selectee.unselecting = true;
274
+
275
+ // selectable UNSELECTING callback
276
+ that._trigger( "unselecting", event, {
277
+ unselecting: selectee.element
278
+ } );
279
+ }
280
+ }
281
+ }
282
+ } );
283
+
284
+ return false;
285
+ },
286
+
287
+ _mouseStop: function( event ) {
288
+ var that = this;
289
+
290
+ this.dragged = false;
291
+
292
+ $( ".ui-unselecting", this.element[ 0 ] ).each( function() {
293
+ var selectee = $.data( this, "selectable-item" );
294
+ that._removeClass( selectee.$element, "ui-unselecting" );
295
+ selectee.unselecting = false;
296
+ selectee.startselected = false;
297
+ that._trigger( "unselected", event, {
298
+ unselected: selectee.element
299
+ } );
300
+ } );
301
+ $( ".ui-selecting", this.element[ 0 ] ).each( function() {
302
+ var selectee = $.data( this, "selectable-item" );
303
+ that._removeClass( selectee.$element, "ui-selecting" )
304
+ ._addClass( selectee.$element, "ui-selected" );
305
+ selectee.selecting = false;
306
+ selectee.selected = true;
307
+ selectee.startselected = true;
308
+ that._trigger( "selected", event, {
309
+ selected: selectee.element
310
+ } );
311
+ } );
312
+ this._trigger( "stop", event );
313
+
314
+ this.helper.remove();
315
+
316
+ return false;
317
+ }
318
+
319
+ } );
320
+
321
+ } );