Seems like shaker does not compile Y.Router #45

Open
ItsAsbreuk opened this Issue May 25, 2013 · 2 comments

Comments

Projects
None yet
2 participants

The issue is simple be recreated.
Just create a new simple app, using ShakerHTMLFrameMojit and one childmojit.

Inside the childmojit, you use this init (and require 'app'):

    init: function(mojitProxy) {
            this.mojitProxy = mojitProxy;
            var app = new Y.App();
            app.on(
                'ready',
                function() {
                    alert('ready app');
                }
            );
            app.render().dispatch();
        },

Without shaker, you get the alert. But as soon as shaker is active not.

I did some investigation, and found out it does not work because Y.Router does not fire the 'ready'-event.

So, I downloaded the core-code of Y.Router, and placed it inside the yui_modules directory. At line 2, I added: alert('router is loaded'); --> this code does not fire when the shaked-webapp runs. It does fire in case of the non-shaked webapp.

Regards,
Marco Asbreuk

Contributor

aljimenez commented May 26, 2013

Try setting resources -> bootstrap to false. Else try setting settings -> serveLocation to default. If neither work I will have to do further investigation to see what is going on.

Hi Albert,

settings -> serveLocation to default could not do (it was me last week who needed serveLocation: 'local')

Setting bootstrap: false however did work.
In the simple example above this leads to 2 extra requests from yui.yahooapis.com
but in my webapp, I get 7 extra yui.yahooapis.com-requests...

I suppose there is no other way?

Thanks in advance,
Marco Asbreuk
Its Asbreuk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment