Backport commit 47924 committed by NathanGray. Trigger a clear event on the etemplate DOMContainer when the etemplate is cleared, so app code can listen for it.

This commit is contained in:
Hadi Nategh 2014-08-04 09:22:38 +00:00
parent 04127c8b56
commit 59bc2e04a8

View File

@ -121,6 +121,8 @@ etemplate2.prototype.resize = function()
*/ */
etemplate2.prototype.clear = function() etemplate2.prototype.clear = function()
{ {
$j(this.DOMContainer).trigger('clear');
// Remove any handlers on window (resize) // Remove any handlers on window (resize)
if(this.uniqueId) if(this.uniqueId)
{ {