mirror of
https://github.com/flynx/object.js.git
synced 2025-10-30 11:00:08 +00:00
docs...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
d0099a625b
commit
a2bd9e514b
@ -295,9 +295,10 @@ function(root, ...objects){
|
|||||||
// This will not call .__init__(..)
|
// This will not call .__init__(..)
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
// NOTE: context is only passed to .__new__(..) if defined...
|
// NOTE: context is only used when passeding to .__new__(..) if defined,
|
||||||
// NOTE: as this simply an extension to the base JavaScript protocol this
|
// and is ignored otherwise...
|
||||||
// can be used to construct using any object...
|
// NOTE: as this is simply an extension to the base JavaScript protocol this
|
||||||
|
// can be used to construct any object...
|
||||||
// Example:
|
// Example:
|
||||||
// var O = function(){}
|
// var O = function(){}
|
||||||
// // new is optional...
|
// // new is optional...
|
||||||
@ -305,7 +306,7 @@ function(root, ...objects){
|
|||||||
// NOTE: .__new__(..) is intentionaly an instance method (contary to
|
// NOTE: .__new__(..) is intentionaly an instance method (contary to
|
||||||
// Python) this is done because there are no classes in JS and
|
// Python) this is done because there are no classes in JS and
|
||||||
// adding and instance constructor as a class method would create
|
// adding and instance constructor as a class method would create
|
||||||
// unneccessary restrictions both on the "class" object and the
|
// unneccessary restrictions both on the "class" object and on the
|
||||||
// instance...
|
// instance...
|
||||||
var makeRawInstance =
|
var makeRawInstance =
|
||||||
module.makeRawInstance =
|
module.makeRawInstance =
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user