Permalink
Browse files

revert [28485] as it actually makes things more difficult for the new…

… doc parser (especially since it's accessing an undefined variable named "declare") , refs #15292 !strict
  • Loading branch information...
1 parent 0bf1b5d commit 14ca8d33ba4353289fea854942c47902f14e6feb @wkeese wkeese committed May 8, 2012
Showing with 10 additions and 18 deletions.
  1. +10 −18 registry.js
View
28 registry.js
@@ -6,26 +6,18 @@ 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 = {
- /*=====
- };
- 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: Number
+ // Number of registered widgets
length: 0,
add: function(/*dijit._Widget*/ widget){
@@ -159,7 +151,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,

0 comments on commit 14ca8d3

Please sign in to comment.