Monday, June 3, 2013

Random notes on the dojox framework.

  • This is some documentation.
  • This touches on dojox/app which consumes the config file.
  • I believe that dojox/app may spin up like so:
    require(["dojox/app/main", "dojox/json/ref", "dojo/text!./config.json"],
       function(Application, json, config){

    ...and calling it like this...
    require(["./main.js"], function(){});
    ...then the three items in require populate the three variables in the function signature. The last of the require items drinks up the contents of config.json.
  • dojo/sniff is for browser detection
  • dojo/text looks cool too

No comments:

Post a Comment