Browse Source

Merge pull request #727 from calexicoz/dev

Allow event functions to be defined as functions AND strings.
pull/739/head
Lebedev Konstantin 9 years ago
parent
commit
da5a74b054
  1. 3
      react-sortable-mixin.js

3
react-sortable-mixin.js vendored

@ -87,6 +87,9 @@
emitEvent = function (/** string */type, /** Event */evt) {
var method = options[type];
if (method && typeof method === "string") {
method = this[method];
}
method && typeof method === "function" && method.call(this, evt, this._sortableInstance);
}.bind(this);

Loading…
Cancel
Save