diff --git a/Dialog.js b/Dialog.js index a4c59cf0a..7a8688abb 100644 --- a/Dialog.js +++ b/Dialog.js @@ -13,7 +13,6 @@ define([ "dojo/keys", "dojo/_base/lang", // lang.mixin lang.hitch "dojo/on", - "dojo/ready", "dojo/sniff", // has("ie") has("opera") has("dijit-legacy-requires") "dojo/window", // winUtils.getBox, winUtils.get "dojo/dnd/Moveable", // Moveable @@ -623,13 +622,5 @@ define([ {dialog: null, focus: null, underlayAttrs: null} // entry for stuff at z-index: 0 ]; - // Back compat w/1.6, remove for 2.0 - if(has("dijit-legacy-requires")){ - ready(0, function(){ - var requires = ["dijit/TooltipDialog"]; - require(requires); // use indirection so modules not rolled into a build - }); - } - return Dialog; }); diff --git a/Menu.js b/Menu.js index eaddb8bb8..0aaaa5d24 100644 --- a/Menu.js +++ b/Menu.js @@ -13,22 +13,13 @@ define([ "dojo/_base/window", // win.body win.doc.documentElement win.doc.frames "dojo/window", // winUtils.get "./popup", - "./DropDownMenu", - "dojo/ready" + "./DropDownMenu" ], function(require, array, declare, dom, domAttr, domGeometry, domStyle, keys, lang, on, - has, win, winUtils, pm, DropDownMenu, ready){ + has, win, winUtils, pm, DropDownMenu){ // module: // dijit/Menu -// Back compat w/1.6, remove for 2.0 -if(has("dijit-legacy-requires")){ - ready(0, function(){ - var requires = ["dijit/MenuItem", "dijit/PopupMenuItem", "dijit/CheckedMenuItem", "dijit/MenuSeparator"]; - require(requires); // use indirection so modules not rolled into a build - }); -} - return declare("dijit.Menu", DropDownMenu, { // summary: // A context menu you can assign to multiple elements diff --git a/Toolbar.js b/Toolbar.js index ff9bf4fd8..43c9a59c7 100644 --- a/Toolbar.js +++ b/Toolbar.js @@ -3,24 +3,14 @@ define([ "dojo/_base/declare", // declare "dojo/has", "dojo/keys", // keys.LEFT_ARROW keys.RIGHT_ARROW - "dojo/ready", "./_Widget", "./_KeyNavContainer", "./_TemplatedMixin" -], function(require, declare, has, keys, ready, _Widget, _KeyNavContainer, _TemplatedMixin){ +], function(require, declare, has, keys, _Widget, _KeyNavContainer, _TemplatedMixin){ // module: // dijit/Toolbar - - // Back compat w/1.6, remove for 2.0 - if(has("dijit-legacy-requires")){ - ready(0, function(){ - var requires = ["dijit/ToolbarSeparator"]; - require(requires); // use indirection so modules not rolled into a build - }); - } - return declare("dijit.Toolbar", [_Widget, _TemplatedMixin, _KeyNavContainer], { // summary: // A Toolbar widget, used to hold things like `dijit.Editor` buttons diff --git a/_Widget.js b/_Widget.js index 75d9c3d18..37423be11 100644 --- a/_Widget.js +++ b/_Widget.js @@ -7,14 +7,13 @@ define([ "dojo/_base/kernel", // kernel.deprecated "dojo/_base/lang", // lang.hitch "dojo/query", - "dojo/ready", "./registry", // registry.byNode "./_WidgetBase", "./_OnDijitClickMixin", "./_FocusMixin", "dojo/uacss", // browser sniffing (included for back-compat; subclasses may be using) "./hccss" // high contrast mode sniffing (included to set CSS classes on , module ret value unused) -], function(aspect, config, connect, declare, has, kernel, lang, query, ready, +], function(aspect, config, connect, declare, has, kernel, lang, query, registry, _WidgetBase, _OnDijitClickMixin, _FocusMixin){ @@ -42,7 +41,7 @@ if(kernel.connect){ aspect.around(kernel, "connect", aroundAdvice); } -var _Widget = declare("dijit._Widget", [_WidgetBase, _OnDijitClickMixin, _FocusMixin], { +return declare("dijit._Widget", [_WidgetBase, _OnDijitClickMixin, _FocusMixin], { // summary: // Old base class for widgets. New widgets should extend `dijit/_WidgetBase` instead // description: @@ -351,13 +350,5 @@ var _Widget = declare("dijit._Widget", [_WidgetBase, _OnDijitClickMixin, _FocusM return true; // Boolean } }); - -// For back-compat, remove in 2.0. -if(has("dijit-legacy-requires")){ - ready(0, function(){ - var requires = ["dijit/_base"]; - require(requires); // use indirection so modules not rolled into a build - }); -} -return _Widget; +; }); diff --git a/_WidgetBase.js b/_WidgetBase.js index 25a9a52ea..963347534 100644 --- a/_WidgetBase.js +++ b/_WidgetBase.js @@ -15,7 +15,6 @@ define([ "dojo/_base/kernel", "dojo/_base/lang", // mixin(), isArray(), etc. "dojo/on", - "dojo/ready", "dojo/Stateful", // Stateful "dojo/topic", "dojo/_base/window", // win.doc, win.body() @@ -24,26 +23,14 @@ define([ "./registry" // registry.getUniqueId(), registry.findWidgets() ], function(require, array, aspect, config, connect, declare, dom, domAttr, domClass, domConstruct, domGeometry, domStyle, has, kernel, - lang, on, ready, Stateful, topic, win, Destroyable, _BidiMixin, registry){ + lang, on, Stateful, topic, win, Destroyable, _BidiMixin, registry){ // module: // dijit/_WidgetBase -// Flag to make dijit load modules the app didn't explicitly request, for backwards compatibility -has.add("dijit-legacy-requires", !kernel.isAsync); - // Flag to enable support for textdir attribute has.add("dojo-bidi", false); - -// For back-compat, remove in 2.0. -if(has("dijit-legacy-requires")){ - ready(0, function(){ - var requires = ["dijit/_base/manager"]; - require(requires); // use indirection so modules not rolled into a build - }); -} - // Nested hash listing attributes for each tag, all strings in lowercase. // ex: {"div": {"style": true, "tabindex" true}, "form": { ... var tagAttrs = {}; diff --git a/form/Button.js b/form/Button.js index 48b984c77..31b5a232e 100644 --- a/form/Button.js +++ b/form/Button.js @@ -5,23 +5,14 @@ define([ "dojo/has", // has("dijit-legacy-requires") "dojo/_base/kernel", // kernel.deprecated "dojo/_base/lang", // lang.trim - "dojo/ready", "./_FormWidget", "./_ButtonMixin", "dojo/text!./templates/Button.html" -], function(require, declare, domClass, has, kernel, lang, ready, _FormWidget, _ButtonMixin, template){ +], function(require, declare, domClass, has, kernel, lang, _FormWidget, _ButtonMixin, template){ // module: // dijit/form/Button -// Back compat w/1.6, remove for 2.0 -if(has("dijit-legacy-requires")){ - ready(0, function(){ - var requires = ["dijit/form/DropDownButton", "dijit/form/ComboButton", "dijit/form/ToggleButton"]; - require(requires); // use indirection so modules not rolled into a build - }); -} - var Button = declare("dijit.form.Button" + (has("dojo-bidi") ? "_NoBidi" : ""), [_FormWidget, _ButtonMixin], { // summary: // Basically the same thing as a normal HTML button, but with special styling. diff --git a/form/CheckBox.js b/form/CheckBox.js index 2ad10f9a6..f9faa6c25 100644 --- a/form/CheckBox.js +++ b/form/CheckBox.js @@ -4,7 +4,6 @@ define([ "dojo/dom-attr", // domAttr.set "dojo/has", // has("dijit-legacy-requires") "dojo/query", // query - "dojo/ready", "./ToggleButton", "./_CheckBoxMixin", "dojo/text!./templates/CheckBox.html", @@ -14,14 +13,6 @@ define([ // module: // dijit/form/CheckBox - // Back compat w/1.6, remove for 2.0 - if(has("dijit-legacy-requires")){ - ready(0, function(){ - var requires = ["dijit/form/RadioButton"]; - require(requires); // use indirection so modules not rolled into a build - }); - } - return declare("dijit.form.CheckBox", [ToggleButton, _CheckBoxMixin], { // summary: // Same as an HTML checkbox, but with fancy styling. diff --git a/form/_FormWidget.js b/form/_FormWidget.js index a6c31e128..74f764cbc 100644 --- a/form/_FormWidget.js +++ b/form/_FormWidget.js @@ -2,25 +2,16 @@ define([ "dojo/_base/declare", // declare "dojo/sniff", // has("dijit-legacy-requires"), has("win8app") "dojo/_base/kernel", // kernel.deprecated - "dojo/ready", "../_Widget", "../_CssStateMixin", "../_TemplatedMixin", "./_FormWidgetMixin" -], function(declare, has, kernel, ready, _Widget, _CssStateMixin, _TemplatedMixin, _FormWidgetMixin){ +], function(declare, has, kernel, _Widget, _CssStateMixin, _TemplatedMixin, _FormWidgetMixin){ // module: // dijit/form/_FormWidget -// Back compat w/1.6, remove for 2.0 -if(has("dijit-legacy-requires")){ - ready(0, function(){ - var requires = ["dijit/form/_FormValueWidget"]; - require(requires); // use indirection so modules not rolled into a build - }); -} - return declare("dijit.form._FormWidget", [_Widget, _TemplatedMixin, _CssStateMixin, _FormWidgetMixin], { // summary: // Base class for widgets corresponding to native HTML elements such as `` or `