diff --git a/README.md b/README.md index 11fde59..3f8ea2e 100755 --- a/README.md +++ b/README.md @@ -423,6 +423,8 @@ var myArray = object.Constructor('myArray', Array, { ## Components +### `sources(..)` + Get sources for attribute ``` sources(, ) @@ -431,6 +433,8 @@ sources(, , ) ``` +### `parent(..)` + Get parent attribute value or method ``` parent(, ) @@ -448,6 +452,9 @@ to the same method under the same name, `parent(..)` can't distinguish between these references and will always return the second one._ + +### `parentProperty(..)` + Get parent property descriptor ``` @@ -457,6 +464,8 @@ parentProperty(, ) ``` +### `parentCall(..)` + Get parent method and call it ``` parentCall(, , ) @@ -469,13 +478,26 @@ parentCall(, ) ``` +### `mixin(..)` + Mixin objects into a prototype chain ``` mixin(, , ..) - -> + -> ``` +### `mixout(..)` + +Mix objects out of a prototype chain +``` +mixout(, , ..) + -> +``` + + +### `mixinFlat(..)` + Mixin contents of objects into one ``` mixinFlat(, , ..) @@ -485,6 +507,8 @@ This is like `Object.assign(..)` but copies property objects rather than property values. +### `makeRawInstance(..)` + Make a raw (un-initialized) instance ``` makeRawInstance(, , ..) @@ -505,6 +529,8 @@ makeRawInstance(, , ..) A shorthand to this is `Constructor.__rawinstance__(context, ..)`. +### `Constructor(..)` + Define an object constructor ``` Constructor() @@ -528,6 +554,8 @@ The resulting _constructor_ function when called will: - call instance's `.__init__(..)` if present. +### `C(..)` + Shorthand to `Constructor(..)` ``` C(, ..)