mirror of
https://github.com/flynx/object.js.git
synced 2025-10-29 10:30:08 +00:00
minor fix in docs...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
f78909d2c6
commit
7e52b91859
@ -352,13 +352,6 @@ This has priority over the callable protocols above, thus the user must
|
|||||||
take care of both the _function constructor_ and `prototype.__call__(..)`
|
take care of both the _function constructor_ and `prototype.__call__(..)`
|
||||||
handling.
|
handling.
|
||||||
|
|
||||||
**Notes:**
|
|
||||||
- `.__new__(..)` is an instance method, contrary to _Python_ (the
|
|
||||||
inspiration for this protocol). This is done intentionally as in
|
|
||||||
JavaScript there is no distinction between an instance and a class and
|
|
||||||
defining `.__new__(..)` in the class would both add complexity as well
|
|
||||||
as restrict the use-cases for the constructor.
|
|
||||||
|
|
||||||
|
|
||||||
### Extending the constructor
|
### Extending the constructor
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user