Classes
Type Definitions
-
SignalOptions
-
Properties
Name Type Attributes Description memorizeboolean <optional> If Signal should keep record of previously dispatched parameters and automatically execute listener. Defaults to
falseparamsarray <optional> Default parameters passed to listener during
Signal.raise/Signal.fire/Signal.triggerand SignalBinding.execute. (curried parameters). Defaults tonullcontextobject <optional> When provided the signal will be raised in the context of this object. Defaults to
this- the signal hostExamples
signals:{ opened: null, twisted: { memorize:true }, applied: { memorize: false, params:[one, two] } } // Setting the context initially can be a hassle, so this also supports a function that returns a hash signals: function(){ return { opened: null, twisted: { memorize:true }, applied: { memorize: false, params:[one, two] }, reversed: {context: someOtherRuntimeObject} }; }Details