This is a plea to all the dojox owners to retest and fix your dojox
packages that have been converted to AMD format, now that the dojo and
dijit module return values have stabilized. ? If you need help, please
write back here. ? Also, write back here just to say if you are
working on a package, or if you aren't maintaining your package
anymore.

Some recent changes that may break your code (assuming that you've
converted your code to AMD format) are:

1. NodeList
Need to explicitly require dojo/Nodelist-dom if you are calling stuff
like query(...).style(...)

2. dom-* separation of getters/seters
None of these methods exist:
? - domAttr.attr()
? - domStyle.style()
? - domGeometry.marginBox()
? - domGeometry.contentBox()

They've been replaced with getters and setters.

3. dojo variable
Don't depend on any module other than kernel.js returning a pointer to dojo.

4. missing dependency on dojo/_base/declare

5. dijit/_base/manager
If you are using dijit.byId, dijit.byNode etc.,?require
dijit/_base/manager. ? Better yet, require dijit/registry.


Some other changes that should be done, but won't break your code
immediately are:

6. multiversion
Use syntax like

var gfx = lang.getObject("dojox.gfx", true)

rather than

var gfx = lang.getObject("gfx", true, dojox)

7. API doc
Make sure API doc is generating correctly, by looking at your package
files in util/docscripts/preview.php. You need helpers like:

/*=====
_Widget = dijit._Widget
gfx = dojox.gfx
=====*/

for any variables used in declare() inheritance lists, or used to
define output from that module, for example:

gfx.foo = function(){
// summary: ...
}

declare("gfx.bar", [_Widget], ...)

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 2 | next ›
Discussion Overview
groupdojo-contributors @
categoriesdojo
postedAug 15, '11 at 12:32a
activeAug 15, '11 at 12:54a
posts2
users2
websitedojotoolkit.org

2 users in discussion

Tom Trenka: 1 post Bill Keese: 1 post

People

Translate

site design / logo © 2021 Grokbase