Trigger a load event on the template container when the etemplate is fully loaded, so other (non-app) scripts can hook in with ease. The etemplate2 object will be the second parameter to the callback.

This commit is contained in:
Nathan Gray 2013-06-17 14:44:55 +00:00
parent 9c2ff7cf80
commit 8c449cae82

View File

@ -251,6 +251,8 @@ etemplate2.prototype.load = function(_name, _url, _data, _callback)
{
_callback.call(window,this);
}
$j(this.DOMContainer).trigger('load', this);
}, this);
// Split the given data into array manager objects and pass those to the