EventBinding
MMO.core · 1 symbol · generated 30 Sep 2026
EventBinding
EventBinding.js:9- Namespace
MMO.core- Todo
- use WeakRef for scope
Index
| constructor(fn, scope) | ||
| hasValidScope() | get scope() { return this._scope? | |
| apply(thisArg, args) | Call the handler with an array of arguments. | |
| call(thisArg, args) | Call the handler with a list of arguments. |
Methods4
constructor(fn, scope)
EventBinding.js:16| fn | Function | Event handler to be called. |
| scope = null |
hasValidScope()
EventBinding.js:29get scope() { return this._scope? this._scope.deref() : null; }
apply(thisArg, args)
EventBinding.js:40Call the handler with an array of arguments.
| thisArg | Object | used as this only when the binding carries no scope |
| args | Array | |
| returns | * | whatever the handler returns |
call(thisArg, args)
EventBinding.js:50Call the handler with a list of arguments.
| thisArg | Object | used as this only when the binding carries no scope |
| ...args | ...* | |
| returns | * | whatever the handler returns |