mirror of
https://github.com/flynx/object.js.git
synced 2025-10-29 18:40:08 +00:00
cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
7e52b91859
commit
7552f07554
@ -381,16 +381,14 @@ function(root, ...objects){
|
|||||||
// 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 on the
|
// unneccessary restrictions both on the "class" object and on the
|
||||||
// instance...
|
// instance...
|
||||||
//
|
// NOTE: the following are not the same:
|
||||||
// XXX the following are not the same:
|
|
||||||
// var C = Constructor('C', function(){ .. })
|
// var C = Constructor('C', function(){ .. })
|
||||||
// and
|
// and
|
||||||
// var C2 = Constructor('C2', { __call__: function(){ .. } })
|
// var C2 = Constructor('C2', { __call__: function(){ .. } })
|
||||||
// the difference is in C.prototype vs. C2.prototype, the first
|
// the difference is in C.prototype vs. C2.prototype, the first
|
||||||
// being a function while the second is an object with a call
|
// being a function while the second is an object with a call
|
||||||
// method...
|
// method...
|
||||||
// Q: should the two cases produce the same result???
|
// XXX Q: should the two cases produce the same result???
|
||||||
// ...don't think so...
|
|
||||||
var makeRawInstance =
|
var makeRawInstance =
|
||||||
module.makeRawInstance =
|
module.makeRawInstance =
|
||||||
function(context, constructor, ...args){
|
function(context, constructor, ...args){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user