Skip to content

Commit

Permalink
Merge pull request SortableJS#739 from didiermoniquet/dev
Browse files Browse the repository at this point in the history
React Mixin - Fixing check for existence of getDOMNode function
  • Loading branch information
RubaXa committed Jan 19, 2016
2 parents 569b118 + b6d5fb6 commit e40abac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion react-sortable-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
}.bind(this);
}, this);

DOMNode = this.getDOMNode() ? (this.refs[options.ref] || this).getDOMNode() : this.refs[options.ref] || this;
DOMNode = typeof this.getDOMNode === 'function' ? (this.refs[options.ref] || this).getDOMNode() : this.refs[options.ref] || this;

/** @namespace this.refs — http://facebook.github.io/react/docs/more-about-refs.html */
this._sortableInstance = Sortable.create(DOMNode, copyOptions);
Expand Down

0 comments on commit e40abac

Please sign in to comment.