mirror of
https://github.com/flynx/object.js.git
synced 2025-10-28 18:10:08 +00:00
notes/docs...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
c9d0948aa6
commit
593080d8fa
10
object.js
10
object.js
@ -268,6 +268,14 @@ function(base, obj, non_strict){
|
||||
|
||||
// like Object.create(..) but also handles callable objects correctly...
|
||||
//
|
||||
// create(obj)
|
||||
// -> obj
|
||||
//
|
||||
// create(func)
|
||||
// create(name, func)
|
||||
// -> func
|
||||
//
|
||||
//
|
||||
// XXX revise .toString(..) creation...
|
||||
var create =
|
||||
module.create =
|
||||
@ -305,7 +313,7 @@ function(obj){
|
||||
enumerable: false,
|
||||
})
|
||||
return func }
|
||||
// normal objects...
|
||||
// normal object...
|
||||
return Object.create(obj) }
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user