From a07fb56da4c15c0eea8949602b53d3b8dcc09614 Mon Sep 17 00:00:00 2001 From: Rafal Szczesniak Date: Tue, 24 Apr 2007 09:10:43 +0000 Subject: r22500: there's a better way to find out if there are any children rafal (This used to be commit ebc67bc0ae71662e9adef23838a8c7b632bf4ea2) --- webapps/swat/source/class/swat/module/netmgr/Gui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapps/swat/source/class/swat/module/netmgr/Gui.js b/webapps/swat/source/class/swat/module/netmgr/Gui.js index 8f9f664a74..ee366e69a5 100644 --- a/webapps/swat/source/class/swat/module/netmgr/Gui.js +++ b/webapps/swat/source/class/swat/module/netmgr/Gui.js @@ -215,8 +215,8 @@ qx.Proto.getParentNode = function(module, node) qx.Proto.openUserManager = function(module, domainName) { - // Remove existing panel if there is any - if (this._panel.getChildrenLength() > 0) + // Remove existing panel if there is any - there can be only one at the time + if (this._panel.hasChildren()) { this._panel.removeAll(); } -- cgit