Make template cache static class level variable, so they're always available & persist for session

This commit is contained in:
Nathan Gray 2014-02-19 22:30:59 +00:00
parent bec852fed2
commit 1c4b473d6f

View File

@ -91,10 +91,12 @@ function etemplate2(_container, _menuaction)
// Preset the object variable // Preset the object variable
this.widgetContainer = null; 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 * Calls the resize event of all widgets
*/ */