Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Mar 13, 2015
1 parent 35db597 commit b1eb175
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/_dustbin-simple/Dustbin.js
Expand Up @@ -30,7 +30,7 @@ const Dustbin = React.createClass({

getDropState() {
const context = this.props.manager.getContext();

return {
isHovering: this.targetHandle && context.isOver(this.targetHandle),
isDragging: context.isDragging()
Expand Down
5 changes: 4 additions & 1 deletion examples/_dustbin-simple/Item.js
Expand Up @@ -19,7 +19,10 @@ class ItemDragSource extends DragSource {
endDrag(context) {
const what = context.getItem();
const where = context.getDropResult();
alert('You dropped ' + what.name + ' into ' + where.name + '!');

if (where) {
alert('You dropped ' + what.name + ' into ' + where.name + '!');
}
}
}

Expand Down

0 comments on commit b1eb175

Please sign in to comment.