|
From: Robert R. <rra...@ya...> - 2000-11-08 21:09:45
|
Why does remove child loop through all of the the children:
DynLayer.prototype.removeChild=function() {
for (var a=0;a<arguments.length;a++) {
var child=arguments[a].getComponent()
for (var i=0;i<this.children.length;i++) {
if (this.children[i]==child) {
Why not just say:
DynLayer.prototype.removeChild=function() {
for (var a=0;a<arguments.length;a++) {
var child=arguments[a].getComponent()
if (child.parent == this) {
}
\\Robert
--
rra...@ya...
|