Skip to content

Commit

Permalink
Move singleton docs inline, where possible. Refs #982
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.dojotoolkit.org/src/dijit/trunk@11705 560b804f-0ae3-0310-86f3-f6aa0a117693
  • Loading branch information
peller committed Dec 5, 2007
1 parent 42cb553 commit dd5822c
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 29 deletions.
12 changes: 9 additions & 3 deletions _base/manager.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
dojo.provide("dijit._base.manager");

dojo.declare("dijit.WidgetSet", null, {
// summary:
// A set of widgets indexed by id

constructor: function(){
// summary:
// A set of widgets indexed by id
this._hash={};
},

Expand Down Expand Up @@ -41,7 +42,12 @@ dojo.declare("dijit.WidgetSet", null, {
}
});

// registry: list of all widgets on page
/*=====
dijit.registry = {
// summary: A list of widgets on a page.
// description: Is an instance of dijit.WidgetSet
};
=====*/
dijit.registry = new dijit.WidgetSet();

dijit._widgetTypeCtr = {};
Expand Down
7 changes: 7 additions & 0 deletions dijit-all.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
console.warn("dijit-all may include much more code than your application actually requires. We strongly recommend that you investigate a custom build or the web build tool");
dojo.provide("dijit.dijit-all");

/*=====
dijit["dijit-all"] = {
// summary: A rollup that includes every dijit. You probably don't need this.
};
=====*/

dojo.require("dijit.dijit");

dojo.require("dijit.ColorPalette");
Expand Down
13 changes: 13 additions & 0 deletions dijit.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
dojo.provide("dijit.dijit");

/*=====
dijit.dijit = {
// summary: A roll-up for common dijit methods
// description:
// A rollup file for the build system including the core and common
// dijit files.
//
// example:
// | <script type="text/javascript" src="js/dojo/dijit/dijit.js"></script>
//
};
=====*/

// All the stuff in _base (these are the function that are guaranteed available without an explicit dojo.require)
dojo.require("dijit._base");

Expand Down
28 changes: 2 additions & 26 deletions resources/_modules.js
Original file line number Diff line number Diff line change
@@ -1,39 +1,15 @@
/*=====
// dijit fallback for key summaries otherwise not covered by the doc parser
// never, ever include this file. really.
dijit.demos = {
// summary: Home of the official dijit demo code
};
dijit.dijit = {
// summary: A roll-up for common dijit methods
// description:
// A rollup file for the build system including the core and common
// dijit files.
//
// example:
// | <script type="text/javascript" src="js/dojo/dijit/dijit.js"></script>
//
};

dijit["dijit-all"] = {
// summary: A rollup that includes every dijit. You probably don't need this.
};

dijit.form = {
// summary: Form and input related widgets
};
dijit.layout = {
// summary: Layout related widgets
};

dijit.nls = {
// summary: i18n translations for dijit
};

dijit.registry = {
// summary: A list of widgets on a page.
// description: Is an instance of dijit.WidgetSet
};

=====*/

0 comments on commit dd5822c

Please sign in to comment.