Howdy List,
   So the error message in the subject line is getting thrown and I am
not clear why except the following code has issues beyond those which I
know about:
ar build_menu = function(menu_obj) {
        top_dom = MochiKit.DOM.DIV('', {});
        ol_dom = MochiKit.DOM.OL('',{});
        if(menu_obj.keys) {
                for(var i=0; i < menu_obj.keys.length; i++) {
                        li_dom = MochiKit.DOM.LI('',
{'class':'collapsable'}, build_menu(menu_obj[menu_obj.keys[i]]),
                                menu_obj[menu_obj.keys[i]]);
                        ol_dom.appendChild(li_dom);
                }
        } else {
                for(var i=0; i < menu_obj.length; i++) {

ol_dom.appendChild(MochiKit.DOM.LI('',{'class':'collapsed'},A('', {
'href':'' }, menu_obj[i])));
                }
        }
        top_dom.appendChild(ol_dom);
        return top_dom;
}

SidebarLinkManager = function() {
        MochiKit.Base.bindMethods(this);
};

SidebarLinkManager.prototype.initialize = function() {
        /* Here we build out the original menus  but all collapsed */

        if(!menu_data) {
                MochiKit.Logging.logFatal('menu_data not passed in');
        }

        MochiKit.DOM.appendChildNodes('sidebar',
build_menu(menu_data));

};

sidebarlinkManager = new SidebarLinkManager();
MochiKit.DOM.addLoadEvent(SidebarLinkManager.initialize);


and the html that loads it is:
<script type="text/javascript" src="/js/dojo.js"></script>
<script type="text/javascript" src="/js/MochiKit/MochiKit.js"></script>
<script type="text/javascript" src="/js/SetLinkEvents.js"></script>
  I have altered __package to work with dojo like so:

dojo.kwCompoundRequire({"common": ["MochiKit.MochiKit"]});

what am I missing here?  There doesn't seem to be anything in google
about this issue.
   Fred


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mochikit
-~----------~----~----~----~------~----~------~--~---

Reply via email to