Skip to content

Handle undefined values on not found key warning

Latest
Compare
Choose a tag to compare
@cherifGsoul cherifGsoul released this 23 Aug 18:43
· 3 commits to master since this release

This fixes the not found key warning when a property is not defined in the scope:

var scope = new Scope({});

var scopeKeyData = scope.computeData("foo.length", {
   warnOnMissingKey: true
});

scopeKeyData.read();  // -> Unable to find key "foo.length".

#210