留言板

Can't load non-minified modules.

Repl Effect,修改在9 年前。

Can't load non-minified modules.

New Member 帖子: 2 加入日期: 14-7-18 最近的帖子
I am using Alloyui 2.5.0, and I'm trying to load the non-minified versions of modules.

my call to YUI().use() looks like this:

[indent]YUI().use( { filter: 'raw' },
....
(module list)
....
function(Y) {
....
}
....
});
[/indent]
All of the minified versions of the modules load with no errors when I exclude the '{filter: 'raw'}' config variable. But when I include it, I get the following error:
[indent]
yui: NOT loaded: [object Object]
[/indent]
this error occurs in aui.js (line 5784)

Also, looking in firebug I can see that all of the minified versions of the modules were loaded (so the filter is not working).

Does anyone here have any idea why this isn't working (or can anyone else reproduce the problem)?
Repl Effect,修改在9 年前。

RE: Can't load non-minified modules.

New Member 帖子: 2 加入日期: 14-7-18 最近的帖子
My bad.

As teslanick pointed out on #yui (freenode), the config goes on the YUI object, not the call to use() ...

YUI( { filter: 'raw' } ).use(
....
(module list)
....
function(Y) {
....
}
....
})

Boy do I feel stupid now :-D