-
Bug
-
Resolution: Fixed
-
Normal
-
9.0.0
-
None
-
None
Steps to Reproduce
http://zkfiddle.org/sample/1h23j2b/4-test-zkbinder
click the button
Current Result
got a js error
Expected Result
should not get any js error
Debug Information
Registers multiple callbacks with same command,
the callback function of binder.after('cmd', fn) execute binder.unAfter('cmd', fn).
causeĀ "this._aftercmd[cmd]" changed during the for loop
Workaround
zk.afterLoad('zkbind', function() {
var _xBinder = {};
zk.override(zkbind.Binder.prototype, _xBinder, {
$doAfterCommand: function (cmd, args)
});
})