rem: document.importNode( 
add: Divmod.Runtime.theRuntime.importNode( 
context:             function(ignored) {                topNode = Divmod.Runtime.theRuntime.firstNodeByAttribute(                    document.importNode(                        Divmod.Runtime.theRuntime.parseXHTMLString(markup).documentElement,                        true),                    'id', 'athena:' + widgetID);                topWidgetClass = Divmod.namedAny(widgetClassName);                if (topWidgetClass === undefined) {                    throw new Error("Bad class: " + widgetClassName);                }                initArguments.unshift(topNode);                topWidget = topWidgetClass.apply(null, initArguments);                Nevow.Athena.Widget._athenaWidgets[widgetID] = topWidget;                for (childIndex = 0; childIndex < children.length; ++childIndex) {                    childWidgetClass = Divmod.namedAny(children[childIndex]['class']);                    childInitArgs = children[childIndex]['initArguments'];                    childID = children[childIndex]['id'];                    if (childID in Nevow.Athena.Widget._athenaWidgets) {                        throw new Error("You blew it: " + childID);                    }                    childNode = Divmod.Runtime.theRuntime.firstNodeByAttribute(topNode, 'id', 'athena:' + childID);                    if (childWidgetClass === undefined) {                        throw new Error("Broken: " + children[childIndex]['class']);                    }                    childInitArgs.unshift(childNode);                    childWidget = childWidgetClass.apply(null, childInitArgs);                    Nevow.Athena.Widget._athenaWidgets[childID] = childWidget;                    parentWidget = Nevow.Athena.Widget.get(childNode.parentNode);                    parentWidget.addChildWidget(childWidget);                }                self.addChildWidget(topWidget);                Nevow.Athena._recursivelyLoad(topWidget);                return topWidget;            });
meta: 1565	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1565/a4582605b7d463b1dd300ec3921906d8b2fc55b8/athena.js/clean/nevow/athena.js