fixed error if this._widgetSurrondings is not defined, no idea why

This commit is contained in:
Ralf Becker 2013-10-30 09:43:12 +00:00
parent 4bd8d43318
commit cabb1e8b8c

View File

@ -536,7 +536,7 @@ var et2_surroundingsMgr = Class.extend(
}, },
removeDOMNode: function(_node) { removeDOMNode: function(_node) {
for (var i = 0; i < this._widgetSurroundings.length; i++) for (var i = 0; this._widgetSurroundings && i < this._widgetSurroundings.length; i++)
{ {
if (this._widgetSurroundings[i] == _node) if (this._widgetSurroundings[i] == _node)
{ {