isBound
Determine whether any listeners are bound to the observable object
isBound(obj)
isBound
queries an observable object to find out whether any listeners have been set on it using
onKeyValue or onValue
var obj = new DefineMap({});
var handler = function() {};
canReflect.isBound(obj); // -> false
canReflect.onKeyValue(obj, "foo", handler);
canReflect.isBound(obj); // -> true
canReflect.offKeyValue(obj, "foo", handler);
canReflect.isBound(obj); // -> false
Parameters
- obj
{*}
:
Returns
{Boolean}
:
true
if obj has at least one key-value or value listener, false
otherwise