revert to more graceful template structure check (#12702)

This commit is contained in:
trop[bot]
2018-04-24 13:16:56 -04:00
committed by Shelley Vohr
parent 2a90b5cbfa
commit 41eda591c2

View File

@@ -167,7 +167,7 @@ Menu.setApplicationMenu = function (menu) {
}
Menu.buildFromTemplate = function (template) {
if (!(template instanceof Array)) {
if (!Array.isArray(template)) {
throw new TypeError('Invalid template for Menu')
}