From 54b056a6f284da208513f251e315503fe9668467 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 22 Jun 2010 18:31:16 +0800 Subject: [PATCH] Sample/Window.js --- Sample/Window.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Sample/Window.js b/Sample/Window.js index 177751fd7..824aa4552 100644 --- a/Sample/Window.js +++ b/Sample/Window.js @@ -3020,11 +3020,10 @@ Window=new XObject({ this.highlightWidget = false; this.withDebug = false; - - if (this.renderedEl) { - this.get('view').el.remove(this.renderedEl); - this.renderedEl.destroy(); - this.renderedEl = false; + while (this.get('view').el.children.length) { + var c = this.get('view').el.children[0]; + this.get('view').el.remove(c); + c.destroy(); } if (!data) { return; -- 2.39.2