Skip to content

Instantly share code, notes, and snippets.

@lalala
Created November 2, 2011 12:57
Show Gist options
  • Save lalala/1333556 to your computer and use it in GitHub Desktop.
Save lalala/1333556 to your computer and use it in GitHub Desktop.
# What I want
$( "#sortable1, #sortable2" ).sortable({
connectWith: ".connectedSortable"
}).disableSelection();
# What I do
$('#current_goals, #future_goals').sortable ({
connectWith: '.schedule_box'
}).disableSelection()
# What coffeescript compiler gives
$('#current_goals, #future_goals').sortable({
connectWith: '.schedule_box'
}.disableSelection());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment