I've trying to bind to the 'dragEnd' event in Coffeescript with packery, but the handler is not being called:
Here is my code:
` els = packery.getItemElements()
for elem in els
draggable = new Draggabilly( elem )
packery.bindDraggabillyEvents( draggable )
$(draggable).on 'dragEnd', (dragIns, event,) ->
console.log event`
Where might I be going wrong? New to Coffeescript, by the way.
I've trying to bind to the 'dragEnd' event in Coffeescript with packery, but the handler is not being called:
Here is my code: ` els = packery.getItemElements()
Where might I be going wrong? New to Coffeescript, by the way.