Index

EventBinding

MMO.core · 1 symbol · generated 5 Oct 2026

class

EventBinding

EventBinding.js:9
class MMO.core.EventBinding
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
constructor(fn, scope = null)
fnFunctionEvent handler to be called.
scope = null

hasValidScope()

EventBinding.js:29

get scope() { return this._scope? this._scope.deref() : null; }

hasValidScope()

apply(thisArg, args)

EventBinding.js:40

Call the handler with an array of arguments.

apply(thisArg, args)
thisArgObjectused as this only when the binding carries no scope
argsArray
returns*whatever the handler returns

call(thisArg, args)

EventBinding.js:50

Call the handler with a list of arguments.

call(thisArg, ...args)
thisArgObjectused as this only when the binding carries no scope
...args...*
returns*whatever the handler returns