From e62cd137c5e06dfad3af95dd4920a03a91dfafe1 Mon Sep 17 00:00:00 2001 From: "Werner Thie, wth" Date: Mon, 21 Jul 2014 19:29:54 -1000 Subject: [PATCH] moved comment to it own line, corrected typo --- nevow/js/Nevow/Athena/__init__.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nevow/js/Nevow/Athena/__init__.js b/nevow/js/Nevow/Athena/__init__.js index 95194b68..520658ca 100644 --- a/nevow/js/Nevow/Athena/__init__.js +++ b/nevow/js/Nevow/Athena/__init__.js @@ -1127,8 +1127,9 @@ Nevow.Athena.Widget.methods( * tracking system. */ function _athenaDetachClient(self) { - var childWidgets = self.childWidgets.slice(); //copy self.childWidgets, fro safe iteration by removeChildWidget - + //copy of self.childWidgets for safe iteration by removeChildWidget + var childWidgets = self.childWidgets.slice(); + for (var i = 0; i < childWidgets.length; ++i) { childWidgets[i]._athenaDetachClient(); }