Skip to content

Commit

Permalink
Merge pull request bevacqua#314 from charbelrami/fix-copy-sort-example
Browse files Browse the repository at this point in the history
replace left with document.getElementById(left)
  • Loading branch information
bevacqua committed Feb 10, 2016
2 parents 46054ae + f24a92c commit d22b371
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,10 @@ <h3 class='tagline'><span class='tagline-text'>Drag and drop so simple it hurts<
<code>
dragula([document.getElementById(left), document.getElementById(right)], {
copy: function (el, source) {
return source === left
return source === document.getElementById(left)
},
accepts: function (el, target) {
return target !== left
return target !== document.getElementById(left)
}
});
</code>
Expand Down

0 comments on commit d22b371

Please sign in to comment.