prefer !== undefined check instead of hasOwnProperty

This commit is contained in:
Kevin Jahns
2018-05-09 16:27:55 +02:00
parent bc32f7348e
commit b9245f323c
2 changed files with 11 additions and 10 deletions

View File

@@ -14,7 +14,6 @@ export default function typeObserver (events) {
if (dom !== undefined && dom !== false) {
if (yxml.constructor === YXmlText) {
dom.nodeValue = yxml.toString()
// TODO: use hasOwnProperty instead of === undefined check
} else if (event.attributesChanged !== undefined) {
// update attributes
event.attributesChanged.forEach(attributeName => {