Browse Source

Fix for callbacks invocation

Tweaked callbacks overwriting and preventing to trying of calling
strings
pull/650/head
Sebastian Troć 9 years ago
parent
commit
8cef762d11
  1. 2
      Sortable.min.js
  2. 4
      react-sortable-mixin.js

2
Sortable.min.js vendored

File diff suppressed because one or more lines are too long

4
react-sortable-mixin.js vendored

@ -85,8 +85,8 @@
copyOptions = _extend({}, options),
emitEvent = function (/** string */type, /** Event */evt) {
var method = this[options[type]];
method && method.call(this, evt, this._sortableInstance);
var method = options[type];
method && typeof method === "function" && method.call(this, evt, this._sortableInstance);
}.bind(this);

Loading…
Cancel
Save