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
a5620ab965
commit
88e5df56e7
@ -272,7 +272,6 @@ user's responsibility to call `.__call__(..)` method.
|
|||||||
|
|
||||||
Prototype-based mixin...
|
Prototype-based mixin...
|
||||||
```javascript
|
```javascript
|
||||||
|
|
||||||
var utilityMixin = {
|
var utilityMixin = {
|
||||||
utility: function(){
|
utility: function(){
|
||||||
// ...
|
// ...
|
||||||
@ -432,7 +431,8 @@ var myArray = object.Constructor('myArray', Array, {
|
|||||||
Note that all of the following are generic and will work on any relevant
|
Note that all of the following are generic and will work on any relevant
|
||||||
JavaScript object.
|
JavaScript object.
|
||||||
|
|
||||||
For example, this will happily create a normal native array object `['a', 'b', 'c']`:
|
For example, this will happily create a normal native array object
|
||||||
|
`['a', 'b', 'c']`:
|
||||||
```javascript
|
```javascript
|
||||||
var l = object.makeRawInstance(null, Array, 'a', 'b', 'c')
|
var l = object.makeRawInstance(null, Array, 'a', 'b', 'c')
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user