You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 8, 2020. It is now read-only.
Please add this often used method right after bindToCaller
/**
* Calls a method defined by a handler
*
* @param {Object} handler A function, or an object including target and action to use with bindToCaller.
* @param {Object} arg One or more arguments. If more, then apply is used instead of call.
*/
handleCallback: function(handler, arg) {
if (typeof(handler) === 'function') {
handler(arg);
} else if (handler && handler.target && handler.action) {
var action = typeof(handler.action) === 'function' ? handler.action : handler.target[handler.action];
var call = this.bindToCaller(handler.target, action, arg);
call();
}
},
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Please add this often used method right after bindToCaller
The text was updated successfully, but these errors were encountered: