Merge pull request #408 from MartinHN/patch-2

resolveProp : compare cached id when checking undefined
This commit is contained in:
jean-emmanuel 2018-10-29 00:02:52 +01:00 • committed by GitHub
commit bc9e62378f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -494,8 +494,8 @@ class Widget extends EventEmitter {
if (widgets[i].props[k] !== undefined || k === 'value') {
if (k !== 'value' && originalPropName == k && widgets[i].props.id == originalWidget.props.id) {
return undefined
if (k !== 'value' && originalPropName === k && widgets[i] === originalWidget) {
return 'ERR_CIRCULAR_REF'
}
var r = k == 'value' ?