Skip to content

Commit

Permalink
Add doc comments to dijit/registry.js so it appears in api.xml. Fixes…
Browse files Browse the repository at this point in the history
… #15292.
  • Loading branch information
Mark Hays committed May 1, 2012
1 parent 0842bc0 commit a1c8fde
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions registry.js
Expand Up @@ -6,18 +6,25 @@ define([
"./main" // dijit._scopeName
], function(array, has, unload, win, dijit){

// module:
// dijit/registry
// summary:
// Registry of existing widget on page, plus some utility methods.
// Must be accessed through AMD api, ex:
// require(["dijit/registry"], function(registry){ registry.byId("foo"); })

var _widgetTypeCtr = {}, hash = {};

var registry = {
// summary:
// A set of widgets indexed by id
/*=====
};
declare("dijit.registry",[
"dojo/_base/array", // array.forEach array.map
"dojo/sniff", // has("ie")
"dojo/_base/unload", // unload.addOnWindowUnload
"dojo/_base/window", // win.body
"./main" // dijit._scopeName
],{
// module:
// dijit/registry
// summary:
// Registry of existing widget on page, plus some utility methods.
// Must be accessed through AMD api, ex:
// require(["dijit/registry"], function(registry){ registry.byId("foo"); })
=====*/

length: 0,

Expand Down Expand Up @@ -152,7 +159,7 @@ define([
// In case someone needs to access hash.
// Actually, this is accessed from WidgetSet back-compatibility code
_hash: hash
};
}/*=====)=====*/;

if(has("ie")){
// Only run _destroyAll() for IE because we think it's only necessary in that case,
Expand All @@ -162,12 +169,6 @@ define([
});
}

/*=====
dijit.registry = {
// summary:
// A list of widgets on a page.
};
=====*/
dijit.registry = registry;

return registry;
Expand Down

0 comments on commit a1c8fde

Please sign in to comment.