Browse Source

React Mixin - Fixing check for existence of getDOMNode function

pull/739/head
Didier Moniquet 9 years ago
parent
commit
b6d5fb6567
  1. 2
      react-sortable-mixin.js

2
react-sortable-mixin.js vendored

@ -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);

Loading…
Cancel
Save