cdotyone / mochaui

development tree for MochaUI
http://mochaui.org/demo/
Other
290 stars 83 forks source link

Create function MUI.sendContentToPartner() (called in MUI.Menu) #101

Open partikule opened 13 years ago

partikule commented 13 years ago

I have a menu with items which call an URL which should update the mainPanel.

In menus.js->_buildItems() I saw that :

else if (item.partner) a.addEvent('click', MUI.sendContentToPartner(this, url, partner, partnerMethod));

but the method sendContentToPartner() doesn't exists for the moment.

I temporary hacked with that :

        else if (item.partner){ 

            a.store('url', url);
            a.store('partner', item.partner);
            a.addEvent('click', function()
            {
                MUI.Content.update({url:this.retrieve('url'), element:this.retrieve('partner')});
            });
        }

Another question, nothing to do with this : Do you plan to open a forum to discuss about implementation ? I'm using the previous version of Mocha since years for the Ionize project (https://github.com/ionize/ionize), but this new version is a bit disturbing. A community with whom to share example would be nice !

cdotyone commented 13 years ago

I am not going to make everyone happy with the next version. There are some fundamental differences. It has major version # change for a reason. There will be breaking changes. I do plan on building a roadmap on how to upgrade to it. A forum is a good idea, but I am not ready yet for people to convert to it. Probably will use the google group for that, because that is where the discussions have been in the past.