Avoid errors if getWidgetById() is called on a cleared widget / template

This commit is contained in:
Nathan Gray 2014-12-03 00:16:39 +00:00
parent fb4482afe6
commit 65a9b4c79c

View File

@ -393,6 +393,7 @@ var et2_widget = ClassWithAttributes.extend(
{ {
return this; return this;
} }
if(!this._children) return null;
for (var i = 0; i < this._children.length; i++) for (var i = 0; i < this._children.length; i++)
{ {