Corey Alix
Corey Alix

Reputation: 2750

How to run both Dojo 1.7 and Dojo 1.6?

It is possible to load both dojo 1.6 and dojo 1.7 on the same page? I've seen examples of loading two versions prior to 1.7 and different 1.7 versions but nothing which mixes 1.6 with 1.7. Looking for something like http://jsfiddle.net/neonstalwart/44e56/ but with 1.6 and 1.7.

Upvotes: 3

Views: 1032

Answers (2)

peller
peller

Reputation: 4543

The Dojo 1.7 loader supports legacy Dojo 1.6 syntax (dojo.require/dojo.provides) along side the newer define(). You can easily do this in synchronous mode (Dojo does not have the full benefit of using asynchronous I/O) or in the various other legacy modes mentioned in the documentation. There should be no need to host two copies of Dojo on your page.

Upvotes: 1

acanimal
acanimal

Reputation: 5020

Dojo 1.7 supports both the old 1.6 and new 1.7 way to create your own widgets.

Upvotes: 0

Related Questions