From 59bc2e04a8a0d2403d69777ac281d8390765c64c Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 4 Aug 2014 09:22:38 +0000 Subject: [PATCH] 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. --- etemplate/js/etemplate2.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etemplate/js/etemplate2.js b/etemplate/js/etemplate2.js index ada8af36fc..2c8268c4c3 100644 --- a/etemplate/js/etemplate2.js +++ b/etemplate/js/etemplate2.js @@ -121,6 +121,8 @@ etemplate2.prototype.resize = function() */ etemplate2.prototype.clear = function() { + $j(this.DOMContainer).trigger('clear'); + // Remove any handlers on window (resize) if(this.uniqueId) {