diff --git a/src/append-menu/AppendMenu.js b/src/append-menu/AppendMenu.js index 48449a4..ce970f9 100644 --- a/src/append-menu/AppendMenu.js +++ b/src/append-menu/AppendMenu.js @@ -33,6 +33,10 @@ AppendMenu.prototype._getMatchingTemplates = function() { AppendMenu.prototype._getTemplateEntries = function(element) { + if (!('createElement' in this._elementTemplates)) { + return []; + } + const templates = this._getMatchingTemplates(); return templates.map(template => {