diff --git a/etemplate/js/etemplate2.js b/etemplate/js/etemplate2.js index 85dfbe4ed8..2a2143d3be 100644 --- a/etemplate/js/etemplate2.js +++ b/etemplate/js/etemplate2.js @@ -91,10 +91,12 @@ function etemplate2(_container, _menuaction) // Preset the object variable this.widgetContainer = null; - // List of templates (XML) that are known, but not used. Indexed by id. - this.templates = {}; } +// List of templates (XML) that are known, not always used. Indexed by id. +etemplate2.prototype.templates = {}; + + /** * Calls the resize event of all widgets */