Use typeof for checking if === undefined.
This commit is contained in:
parent
35b3275259
commit
4c454e6f93
@ -89,7 +89,7 @@ class DataBoard
|
||||
@save =>
|
||||
oldVal = @get {siteID, boardID, threadID, postID, defaultValue: {}}
|
||||
for key, subVal of val
|
||||
if subVal is undefined
|
||||
if typeof subVal is 'undefined'
|
||||
delete oldVal[key]
|
||||
else
|
||||
oldVal[key] = subVal
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user