Reputation: 9
I need a difference between DOJO 1.3 and DOJO 1.10.
In my application, we are using 1.3 version so we are planning to use the latest version 1.10. Just I got the 1.10 version from online free download then I compared the source code between the version. I find lot of differences so I'm struck with the upgrade as whether I can replace or I have to re write the code.
I'm not aware of the version in between these. I'm aware of my code level changes in the older version but lagging for replacement.
So any one can suggest me the differences. How I can upgrade my code to the latest?
Thanks in advance :)
Upvotes: 0
Views: 652
Reputation: 10559
Your best resource is going to be the release notes, which exist for each incremental minor release.
In terms of "how to upgrade", that depends on what your ultimate goal is. Dojo for the most part aims to be backwards-compatible, so things should mostly still work. Here are some of the more likely places I can think of for things to incidentally break:
If you are interested in updating your code to make use of features available in later versions of Dojo, here are some examples of primary areas of interest (this is certainly not expected to be an exhaustive list):
dojo.provide
and dojo.require
) with AMD modules, and no longer relying on globals / global namespaces
async: true
to dojoConfig
, which configures the loader to drop backwards-compatible synchronous loading (which is slow) and behave strictly like an AMD loaderdojo/store
(or even dstore, though only dgrid supports this directly at the moment) instead of dojo/data
dojo/request
instead of dojo.xhrGet
etc.dojo.connect
to use dojo/on
for events or dojo/aspect
for method join pointsget('foo')
and set('foo')
(and implementing _getFooAttr
and _setFooAttr
for custom accessors/mutators) instead of getFoo
and setFoo
A few other things worth looking at:
Upvotes: 2