From 3b0dc683b5fbc3ab4b4fcb38eac61b512e34e9d8 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 6 May 2020 03:50:55 +0300 Subject: [PATCH] cleanup + docs... Signed-off-by: Alex A. Naanou --- object.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/object.js b/object.js index b9edba3..6be106b 100755 --- a/object.js +++ b/object.js @@ -426,7 +426,21 @@ function(context, constructor, ...args){ // call .__init__(..) if defined // // -// +// Special attributes: +// +// Sets parent constructor +// .__extends__ = constructor +// NOTE: this can be set on either constructor-mixin or proto but +// not on both... +// NOTE: if .__proto__ is not set in the proto, then it will be +// set to .__extends__.prototype by default. +// NOTE: setting this and proto.__proto__ to can be used to link the +// constructor and instance object to different prototype chains +// NOTE: this attr is only used if explicitly defined, inherited +// values are ignored. +// XXX this may get removed in future versions. +// +// // Special methods (constructor): // // Handle uninitialized instance construction