Skip to content

Commit

Permalink
Merge pull request #120 from j201/master
Browse files Browse the repository at this point in the history
Allow draggable data to be a falsy value
  • Loading branch information
rniemeyer committed Sep 29, 2014
2 parents c8185b4 + 4d139f4 commit 44a8859
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/knockout-sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@
connectClass = value.connectClass || ko.bindingHandlers.draggable.connectClass,
isEnabled = value.isEnabled !== undefined ? value.isEnabled : ko.bindingHandlers.draggable.isEnabled;

value = value.data || value;
value = "data" in value ? value.data : value;

//set meta-data
dataSet(element, DRAGKEY, value);
Expand Down

0 comments on commit 44a8859

Please sign in to comment.