add: try { var widgetParent = Nevow.Athena.Widget.get(n.parentNode); widgetParent.addChildWidget(inst); } catch (noParent) {  Divmod.debug("widget", "No parent found for widget " + inst); } 
context: Nevow.Athena.Widget._instantiateWidgets = function() {    var visitor = function(n) {        try {            var cls = Nevow.Athena.athenaClassFromNode(n);            if (cls) {                Divmod.debug("widget", "Found Widget class " + cls + ", instantiating.");                var inst = cls.get(n);                Divmod.debug("widget", "Widget class " + cls + " instantiated.");                if (inst.loaded != undefined) {                    inst.loaded();                    Divmod.debug("widget", "Widget class " + cls + " loaded.");                }            }        } catch (e) {            Divmod.debug('widget', '==================================================');            Divmod.debug('widget', 'Error instantiating widget on tag ' + n.tagName);            for (var i in n.attributes) {                Divmod.debug('widget', i + ': ' + n.attributes[i].value);            }            Divmod.debug('widget', '==================================================');        }    }    Nevow.Athena._walkDOM(document, visitor);}
meta: 1565	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1565/11a549dd9773db374bc4bf33ef0fed1c3ea5cc98/widget.js/buggy/nevow/widget.js