ducksboard / gridster.js

gridster.js is a jQuery plugin that makes building intuitive draggable layouts from elements spanning multiple columns
http://gridster.net/
MIT License
6.03k stars 1.2k forks source link

draggable.stop does not pass $widget #331

Closed bpierson closed 10 years ago

bpierson commented 10 years ago

Some of the samples show code like: ... draggable: { stop: function(e, ui, $widget) { } }

but in fact $widget is not passed by the call. I have worked around it by using this.$wrapper, but this seems unintuitive based on the way the resize callbacks work.

vieron commented 10 years ago

You can get a reference to the widget from ui.$player