You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getContext(filter): Get object context specified by filter. Possible filter types:
not set - current context will be returned.
number - filter will be used as relative depth (0 is current context, 1 for parent and so on).
string - will look for closest context that contains property name equal to filter.
function - will be used as boolean function (true to stop) while bubbling up through contexts.
// Example:varcurrentContext=binary.getContext();// current object that value belongs tovarparentContext=binary.getContext(1);// one level upvarcontextWithID=binary.getContext('id');// first context with "id" property (bubbling up)varcontextWithID1=binary.getContext(function(context){returncontext.id===1});// first context that matches custom condition
inContext(newContext, callback): Steps into given context and executes function inside it.