1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

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

View File

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