Browse Source

Merge pull request #739 from didiermoniquet/dev

React Mixin - Fixing check for existence of getDOMNode function
pull/744/head
Lebedev Konstantin 9 years ago
parent
commit
e40abac2ef
  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