Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit 14ca8d33ba4353289fea854942c47902f14e6feb 1 parent 0bf1b5d
Bill Keese wkeese authored

Showing 1 changed file with 10 additions and 18 deletions. Show diff stats Hide diff stats

  1. +10 18 registry.js
28 registry.js
@@ -6,26 +6,18 @@ define([
6 6 "./main" // dijit._scopeName
7 7 ], function(array, has, unload, win, dijit){
8 8
  9 + // module:
  10 + // dijit/registry
  11 + // summary:
  12 + // Registry of existing widget on page, plus some utility methods.
  13 + // Must be accessed through AMD api, ex:
  14 + // require(["dijit/registry"], function(registry){ registry.byId("foo"); })
  15 +
9 16 var _widgetTypeCtr = {}, hash = {};
10 17
11 18 var registry = {
12   - /*=====
13   - };
14   - declare("dijit.registry",[
15   - "dojo/_base/array", // array.forEach array.map
16   - "dojo/sniff", // has("ie")
17   - "dojo/_base/unload", // unload.addOnWindowUnload
18   - "dojo/_base/window", // win.body
19   - "./main" // dijit._scopeName
20   - ],{
21   - // module:
22   - // dijit/registry
23   - // summary:
24   - // Registry of existing widget on page, plus some utility methods.
25   - // Must be accessed through AMD api, ex:
26   - // require(["dijit/registry"], function(registry){ registry.byId("foo"); })
27   - =====*/
28   -
  19 + // length: Number
  20 + // Number of registered widgets
29 21 length: 0,
30 22
31 23 add: function(/*dijit._Widget*/ widget){
@@ -159,7 +151,7 @@ define([
159 151 // In case someone needs to access hash.
160 152 // Actually, this is accessed from WidgetSet back-compatibility code
161 153 _hash: hash
162   - }/*=====)=====*/;
  154 + };
163 155
164 156 if(has("ie")){
165 157 // 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.
Something went wrong with that request. Please try again.