mirror of
https://github.com/flynx/diff.js.git
synced 2025-10-29 19:10:11 +00:00
part 1 of a fix to attr viaibility bug...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
c57b42cfd1
commit
97fa4718ae
12
diff.js
12
diff.js
@ -736,16 +736,16 @@ object.makeConstructor('AT', Object.assign(Object.create(LogicType.prototype), {
|
|||||||
[]
|
[]
|
||||||
// pattern key,,,
|
// pattern key,,,
|
||||||
: k instanceof LogicType ?
|
: k instanceof LogicType ?
|
||||||
Object.entries(o)
|
[...getAllKeys(o)]
|
||||||
.filter(function(e){
|
.filter(function(n){
|
||||||
return cmp(k, e[0], context) })
|
return cmp(k, n, context) })
|
||||||
.map(function(e){
|
.map(function(n){
|
||||||
return e[1] })
|
return o[n] })
|
||||||
// normal key...
|
// normal key...
|
||||||
// NOTE: we are not using 'k in o' here because
|
// NOTE: we are not using 'k in o' here because
|
||||||
// only objects are supported by the in
|
// only objects are supported by the in
|
||||||
// operator and we can get any value...
|
// operator and we can get any value...
|
||||||
: Object.keys(o).indexOf(k) >= 0 ?
|
: getAllKeys(o).has(k) ?
|
||||||
[o[k]]
|
[o[k]]
|
||||||
// key not in container...
|
// key not in container...
|
||||||
: [] })
|
: [] })
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user