Sample/Window.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 22 Jun 2010 10:32:06 +0000 (18:32 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 22 Jun 2010 10:32:06 +0000 (18:32 +0800)
Sample/Window.js

index 824aa45..5d3ccbe 100644 (file)
@@ -3020,8 +3020,8 @@ Window=new XObject({
                                                                           this.highlightWidget = false;
                                                                        
                                                                         this.withDebug = false;
-                                                                        while (this.get('view').el.children.length) {
-                                                                            var c = this.get('view').el.children[0];
+                                                                        while (this.get('view').el.get_children().length) {
+                                                                            var c = this.get('view').el.get_children()[0];
                                                                             this.get('view').el.remove(c);        
                                                                             c.destroy();
                                                                         }