BUGFIX: Check for empty

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@96441 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Luke Hudson 2010-01-07 01:39:21 +00:00 committed by Sam Minnee
parent 904fcf02d0
commit 3a63f1ab52

View File

@ -63,6 +63,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)) {