dojo.provide¶
Status: | Draft |
---|---|
Version: | 1.0 |
Project owner: | ?– |
Available: | since V? |
Contents
dojo.provide is a core part of the dojo packaging system. It enables telling the package manager that a specific package has been loaded. Asides from the functioning, there has been mention that it automatically instantiates objects corresponding to the namespace it is passed.
Introduction¶
Each javascript source file must have at least one dojo.provide() call at the top of the file, corresponding to the file name. For example, js/dojo/foo.js must have dojo.provide(“dojo.foo”); before any calls to dojo.require() are made.