offKeyValue
Remove handler from event queue.
globals.offKeyValue(key, handler)
Removes handler
from future change events for key
.
var handler = (value) => {
value === 'baz' //-> true
};
globals.define('foo', 'bar');
globals.onKeyValue('foo', handler);
globals.setKeyValue('foo', 'baz');
globals.offKeyValue('foo', handler);
Parameters
- key
{String}
:The key value to observe.
- handler
{function(value)}
:The observer callback.