We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95e4beb commit 186917dCopy full SHA for 186917d
ChangeLog.txt
@@ -1,3 +1,6 @@
1
+0.6.5
2
+fix for #289, allow setting attributes to undefined value
3
+
4
0.6.4
5
Code tidy
6
Updated dependencies
src/AttributeDefinitions.ts
@@ -59,8 +59,8 @@ export class AttributeDefinitions {
59
60
update(jsonObj: any, obj: any) {
61
for (const attr of this.attributes) {
62
- const fromValue = jsonObj[attr.name];
63
- if (fromValue !== undefined) {
+ if (jsonObj.hasOwnProperty(attr.name)) {
+ const fromValue = jsonObj[attr.name];
64
obj[attr.name] = fromValue;
65
}
66
0 commit comments