JW.
JW.

Reputation: 4951

Does Dojo Framework have the version set in it somewhere?

I have a copy of Dojo framework but i am not sure which version it is. How can you tell? Surely it must be set as a value in it somewhere. My downloaded folder looks like this:

dojo\
 dijit\
 dojo\
 dojox\
 util\

Upvotes: 1

Views: 3007

Answers (3)

Eugene Lazutkin
Eugene Lazutkin

Reputation: 43956

dojo.version will give you the details of the exact version you're using.

Here is an example of the output:

>>> dojo.version;
0.0.0dev (15278) major=0 minor=0 patch=0 flag=dev revision=15278
>>> dojo.version.toString();
"0.0.0dev (15278)"

Upvotes: 3

Andy Moore
Andy Moore

Reputation: 1

Following on from JW's answer above, it look like in Dojo 1.8 and 1.9 the dojo.version property is set in

dojo/_base/kernel.js

Look for the line starting with:

dojo.version =

Upvotes: 5

JW.
JW.

Reputation: 4951

aaah got it: its set in:

dojo\
 dojo\
  _base\
   _loader\
    bootstrap.js

Upvotes: 4

Related Questions