Skip to content

Commit

Permalink
replace left with document.getElementById(left)
Browse files Browse the repository at this point in the history
  • Loading branch information
charbelrami committed Feb 10, 2016
1 parent 46054ae commit f24a92c
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 f24a92c

Please sign in to comment.