Namespace: Ancestor

BeautifulProperties.Events. Ancestor

Methods

(static) retrieve(object) → {object|null}

Retrieve the ancestor of the target object by the ancestorRetriever that set on the target object. If the target object don't have ancestorRetriever or the ancestorRetriever returns undefined, the method returns the prototype of the target object.
Parameters:
Name Type Description
object object target object
BeautifulProperties.Events.Event
Source:
Returns:
the ancestor of the target object
Type
object | null

(static) setRetriever(object, ancestorRetriever)

Parameters:
Name Type Description
object object target object
ancestorRetriever BeautifulProperties.Events.Ancestor~ancestorRetriever
Source:

Type Definitions

ancestorRetriever(object, event) → {object|null|undefined}

The function to retrieve the ancestor of given object.
Parameters:
Name Type Description
object object target object
event BeautifulProperties.Events.Event
Source:
Returns:
Type
object | null | undefined