dojo included files

2 views
Skip to first unread message

atlguy

unread,
Dec 16, 2009, 9:22:44 AM12/16/09
to Blast Mojo
I'm confused as to why the dojo.js has been modified to include a
bunch of other j'script (at the bottom). To make it easier to upgrade,
I don't think any mods should be required. If I remove the mods or
upgrade to Dojo 1.4, several js errors get logged.

In addition, what is the cldr folder and suplemental javacript files
in it used for?

loyalchow

unread,
Dec 16, 2009, 2:42:42 PM12/16/09
to Blast Mojo
Hi Robert,

No mods have been made to any Dojo code. The dojo.js included is
simply a Dojo build that includes several classes from the dojoX
library that are needed primarily for Mojo form validation. The cldr
was included because I didn't want to custom modify any of the dojoX
code, and it depended on dojo.number which depended on localization
classes from cldr, so this chain of dojo dependencies added to some
code bloat at the bottom.

I can see how this is alot of stuff to include when you don't
necessarily need it most of the time. So I've modified the mojo
validation code so it only requires dojox when those specific methods
are Used. Otherwise, the dojo.js can stay clean. I've made these
updates in my own Github fork: http://github.com/loyalchow/Blast-Mojo

Before this is merged into the master, anyone see any issues with this
or test this more thoroughly? Note: you will need to include the dojox
library classes in your dojo directory if you want to use their
methods now, as they are not included in the dojo.js build

Cheers,

Loyal

Cary Newfeldt

unread,
Dec 16, 2009, 2:44:41 PM12/16/09
to blast...@googlegroups.com
Hey Loyal,

Any change of setting up the use of the sizzle selector engine in the new dojo version you included in the last build? I think right now it defaults to acme.

Thanks,

Cary.

Loyal Chow

unread,
Dec 16, 2009, 2:55:03 PM12/16/09
to blast...@googlegroups.com
No Mojo changes, as dojo.query should work the same using either acme or sizzle. But you`ll need to do another Dojo build with sizzle as the query-engine option to use: http://www.dojotoolkit.org/2009/03/31/dojo-1-3-now-available

Cary Newfeldt

unread,
Dec 16, 2009, 2:57:28 PM12/16/09
to blast...@googlegroups.com
Right, I’m asking if you can do a dojo build with sizzle for your fork? :)

Thanks,

c

atlguy

unread,
Dec 17, 2009, 11:36:20 AM12/17/09
to Blast Mojo
That totally makes sense now. If you want dojox functions, you should
include the dojox classes. It makes upgrading a little more
straightforward.
Reply all
Reply to author
Forward
0 new messages