提交 8cef762d 编写于 作者: S Sebastian Troć

Fix for callbacks invocation

Tweaked callbacks overwriting and preventing to trying of calling
strings
上级 d359188d
此差异已折叠。
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册