mirror of
https://github.com/flynx/object.js.git
synced 2025-10-30 11:00:08 +00:00
minor tweak...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
5654019be5
commit
f54090dcac
10
object.js
10
object.js
@ -261,7 +261,7 @@ function(base, obj, non_strict){
|
|||||||
//---------------------------------------------------------------------
|
//---------------------------------------------------------------------
|
||||||
// Prototype chain content access...
|
// Prototype chain content access...
|
||||||
|
|
||||||
// trigger iteration stop...
|
// Value trigger iteration stop and to carry results...
|
||||||
//
|
//
|
||||||
// NOTE: we need Constructor(..) to make this so will deffer this to the
|
// NOTE: we need Constructor(..) to make this so will deffer this to the
|
||||||
// end...
|
// end...
|
||||||
@ -962,9 +962,11 @@ function Constructor(name, a, b, c){
|
|||||||
})
|
})
|
||||||
// set generic raw instance constructor...
|
// set generic raw instance constructor...
|
||||||
_constructor.__rawinstance__ instanceof Function
|
_constructor.__rawinstance__ instanceof Function
|
||||||
|| (_constructor.__rawinstance__ =
|
|| Object.defineProperty(_constructor, '__rawinstance__', {
|
||||||
function(context, ...args){
|
value: function(context, ...args){
|
||||||
return RawInstance(context, this, ...args) })
|
return RawInstance(context, this, ...args) },
|
||||||
|
enumerable: false,
|
||||||
|
})
|
||||||
!!constructor_proto
|
!!constructor_proto
|
||||||
&& (_constructor.__proto__ = constructor_proto)
|
&& (_constructor.__proto__ = constructor_proto)
|
||||||
_constructor.prototype = proto
|
_constructor.prototype = proto
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ig-object",
|
"name": "ig-object",
|
||||||
"version": "5.4.11",
|
"version": "5.4.12",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "object.js",
|
"main": "object.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
7
test.js
7
test.js
@ -766,6 +766,13 @@ var cases = test.Cases({
|
|||||||
assert(z.b == 'bbb', 'mixin content from C')
|
assert(z.b == 'bbb', 'mixin content from C')
|
||||||
assert(z.c == 'ccc', 'mixin content from C')
|
assert(z.c == 'ccc', 'mixin content from C')
|
||||||
|
|
||||||
|
/*/ XXX
|
||||||
|
assert(C.mixout(z) === z, 'C.mixout(..) partial')
|
||||||
|
|
||||||
|
assert('a' in z, 'post-mixout (partial) non mixed content retained')
|
||||||
|
assert('b' in z == false, 'post-mixout (partial) content gone')
|
||||||
|
assert('c' in z == false, 'post-mixout (partial) content gone')
|
||||||
|
//*/
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user