Protect against node type names that clash with Object property names

Fixes #917
This commit is contained in:
Nick O'Leary 2016-06-30 00:38:48 +01:00
parent 12e46deea2
commit 6bc3f82afe
1 changed files with 1 additions and 1 deletions

View File

@ -724,7 +724,7 @@ RED.editor = (function() {
}
}
}
if (editTrayWidthCache[type]) {
if (editTrayWidthCache.hasOwnProperty(type)) {
trayOptions.width = editTrayWidthCache[type];
}