()
| 1162 | } |
| 1163 | |
| 1164 | function stop() { |
| 1165 | if (dragging) { |
| 1166 | $(doc).unbind(duringDragEvents); |
| 1167 | $(doc.body).removeClass('sp-dragging'); |
| 1168 | |
| 1169 | // Wait a tick before notifying observers to allow the click event |
| 1170 | // to fire in Chrome. |
| 1171 | setTimeout(function () { |
| 1172 | onstop.apply(element, arguments); |
| 1173 | }, 0); |
| 1174 | } |
| 1175 | dragging = false; |
| 1176 | } |
| 1177 | |
| 1178 | $(element).bind('touchstart mousedown', start); |
| 1179 | } |