diff --git a/javascript/WidgetAreaEditor.js b/javascript/WidgetAreaEditor.js index 644b8139..71b57469 100644 --- a/javascript/WidgetAreaEditor.js +++ b/javascript/WidgetAreaEditor.js @@ -64,6 +64,9 @@ WidgetAreaEditorClass.prototype = { this.name = this.getAttribute('name'); var monkeyWith = function(widgets, name) { + if (!widgets) { + return; + } for(var i = 0; i < widgets.length; i++) { widget = widgets[i]; if (!widget.getAttribute('rewritten') && (widget.id || widget.name)) {