Avoid error if div has no ID (eg: dialog)

This commit is contained in:
Nathan Gray 2013-08-26 19:08:02 +00:00
parent cb22a93104
commit 4fa0370ce4

View File

@ -85,7 +85,7 @@ function etemplate2(_container, _menuaction)
this.menuaction = _menuaction;
// Unique ID to prevent DOM collisions across multiple templates
this.uniqueId = _container.getAttribute("id").replace('.','-');
this.uniqueId = _container.getAttribute("id") ? _container.getAttribute("id").replace('.','-') : '';
// Preset the object variable
this.widgetContainer = null;