Skip to content

Commit

Permalink
Fixing missing requires for dojo.declare(), refs #13035 !strict. Also…
Browse files Browse the repository at this point in the history
… removed module return values for deprecated modules, and did various other cleanup.

git-svn-id: http://svn.dojotoolkit.org/src/dijit/trunk@25823 560b804f-0ae3-0310-86f3-f6aa0a117693
  • Loading branch information
wkeese committed Jul 19, 2011
1 parent 19bf5af commit aa4c588
Show file tree
Hide file tree
Showing 61 changed files with 65 additions and 31 deletions.
3 changes: 2 additions & 1 deletion InlineEditBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ define([
"./focus",
"dojo/i18n!./nls/common",
"dojo/_base/array", // dojo.forEach
"dojo/_base/connect", // dojo.keys.ENTER dojo.keys.ESCAPE
"dojo/_base/declare", // dojo.declare
"dojo/_base/event", // dojo.stopEvent
"dojo/_base/html", // dojo.addClass dojo.attr dojo.create dojo.destroy dojo.getComputedStyle dojo.removeClass dojo.style dojo.toggleClass
"dojo/keys", // dojo.keys.ENTER dojo.keys.ESCAPE
"dojo/_base/lang", // dojo.delegate dojo.hitch dojo.trim
"dojo/_base/sniff" // dojo.isIE
], function(dojo, dijit, template){
Expand Down
1 change: 1 addition & 0 deletions Menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ define([
"./DropDownMenu",
"dojo/_base/array", // dojo.forEach
"dojo/_base/connect", // dojo.connect dojo.disconnect dojo.keys.F10
"dojo/_base/declare", // dojo.declare
"dojo/_base/event", // dojo.stopEvent
"dojo/_base/html", // dojo.attr dojo.byId dojo.getComputedStyle dojo.hasAttr dojo.isDescendant dojo.position dojo.removeAttr
"dojo/_base/lang", // dojo.hitch
Expand Down
1 change: 1 addition & 0 deletions MenuBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ define([
"dojo/text!./templates/MenuBar.html",
"./Menu",
"dojo/_base/connect", // dojo.keys dojo.keys.DOWN_ARROW
"dojo/_base/declare", // dojo.declare
"dojo/_base/event" // dojo.stopEvent
], function(dojo, dijit, template){

Expand Down
1 change: 1 addition & 0 deletions ProgressBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ define([
"dojo/number", // dojo.number.format
"./_Widget",
"./_TemplatedMixin",
"dojo/_base/declare", // dojo.declare
"dojo/_base/html" // dojo.toggleClass
], function(require, dojo, dijit, template){

Expand Down
1 change: 1 addition & 0 deletions TitlePane.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ define([
"./_CssStateMixin",
"dojo/_base/array", // dojo.forEach
"dojo/_base/connect", // dojo.keys.DOWN_ARROW dojo.keys.ENTER
"dojo/_base/declare", // dojo.declare
"dojo/_base/event", // dojo.stopEvent
"dojo/_base/html" // dojo.attr dojo.marginBox dojo.removeAttr dojo.replaceClass dojo.setSelectable
], function(dojo, dijit, template){
Expand Down
1 change: 1 addition & 0 deletions Tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ define([
"dojo/_base/Deferred", // dojo.Deferred
"dojo/_base/array", // dojo.filter dojo.forEach dojo.map
"dojo/_base/connect", // dojo.isCopyKey dojo.keys dojo.publish
"dojo/_base/declare", // dojo.declare
"dojo/_base/event", // dojo.stopEvent
"dojo/_base/html", // dojo.addClass dojo.isDescendant dojo.marginBox dojo.removeClass dojo.replaceClass dojo.style dojo.toggleClass
"dojo/_base/lang" // dojo.hitch dojo.isString
Expand Down
1 change: 0 additions & 1 deletion _Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,5 @@ define([
// not satisfy dijit's a11y policy.
dijit._Calendar = dijit.Calendar;


return dijit._Calendar;
});
1 change: 1 addition & 0 deletions _CssStateMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ define([
".",
"dojo/touch",
"dojo/_base/array", // dojo.forEach dojo.map
"dojo/_base/declare", // dojo.declare
"dojo/_base/html", // dojo.toggleClass
"dojo/_base/lang", // dojo.hitch
"dojo/_base/window" // dojo.body
Expand Down
1 change: 1 addition & 0 deletions _MenuBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ define([
"./_FocusMixin",
"./_KeyNavContainer",
"./_TemplatedMixin",
"dojo/_base/declare", // dojo.declare
"dojo/_base/html", // dojo.isDescendant dojo.replaceClass
"dojo/_base/lang", // dojo.hitch
"dojo/_base/array" // dojo.indexOf
Expand Down
1 change: 1 addition & 0 deletions _PaletteMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ define([
".",
"./_CssStateMixin",
"dojo/_base/connect", // dojo.keys
"dojo/_base/declare", // dojo.declare
"dojo/_base/event", // dojo.stopEvent
"dojo/_base/html", // dojo.addClass dojo.attr dojo.create dojo.place dojo.removeClass
"dojo/_base/lang", // dojo.hitch
Expand Down
1 change: 1 addition & 0 deletions _Widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ define([
"./_WidgetBase",
"./_OnDijitClickMixin",
"./_FocusMixin",
"dojo/_base/declare", // dojo.declare
"dojo/_base/lang", // dojo.hitch
"dojo/_base/connect", // dojo.connect
"dojo/uacss", // brower sniffing
Expand Down
3 changes: 1 addition & 2 deletions _base.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
define([
"dojo/_base/kernel",
".",
"./_base/focus",
"./_base/manager",
Expand All @@ -10,7 +9,7 @@ define([
"./_base/typematic",
"./_base/wai",
"./_base/window"
], function(dojo, dijit){
], function(dijit){

// module:
// dijit/_base
Expand Down
8 changes: 1 addition & 7 deletions _base/sniff.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
define([
"dojo/_base/kernel",
"..",
"dojo/uacss"
], function(dojo, dijit){
define([ "dojo/uacss" ], function(){
// module:
// dijit/_base/sniff
// summary:
// Back compatibility module, new code should require dojo/uacss directly instead of this module.

return dijit;
});
7 changes: 2 additions & 5 deletions _base/window.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
define([
"dojo/_base/kernel",
"..",
"dojo/window" // dojo.window.get
], function(dojo, dijit){
], function(dijit, window){
// module:
// dijit/_base/window
// summary:
// Back compatibility module, new code should use dojo/window directly instead of using this module.

dijit.getDocumentWindow = function(doc){
return dojo.window.get(doc);
return window.get(doc);
};

return dijit;
});
3 changes: 2 additions & 1 deletion _editor/RichText.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ define([
"./range",
"./html",
"../focus",
"dojo/_base/Deferred", // dojo.Deferred
"dojo/_base/array", // dojo.forEach dojo.indexOf dojo.some
"dojo/_base/connect", // dojo.connect dojo.keys.BACKSPACE dojo.keys.TAB dojo.publish
"dojo/_base/declare", // dojo.declare
"dojo/_base/Deferred", // dojo.Deferred
"dojo/_base/event", // dojo.stopEvent
"dojo/_base/html", // dojo.addClass dojo.attr dojo.byId dojo.contentBox dojo.create dojo.destroy dojo.getComputedStyle dojo.place dojo.position dojo.removeClass dojo.style
"dojo/_base/lang", // dojo.clone dojo.hitch dojo.isArray dojo.isFunction dojo.isString dojo.trim
Expand Down
3 changes: 2 additions & 1 deletion _editor/_Plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ define([
"../form/Button",
"dojo/_base/array", // dojo.forEach
"dojo/_base/connect", // dojo.connect dojo.disconnect
"dojo/_base/declare", // dojo.declare
"dojo/_base/lang" // dojo.hitch
], function(dojo, dijit){

Expand Down Expand Up @@ -290,4 +291,4 @@ dojo.declare("dijit._editor._Plugin", null, {
});

return dijit._editor._Plugin;
});
});
1 change: 1 addition & 0 deletions _editor/plugins/AlwaysShowToolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ define([
"../_Plugin",
"dojo/_base/array", // dojo.forEach
"dojo/_base/connect", // dojo.disconnect
"dojo/_base/declare", // dojo.declare
"dojo/_base/html", // dojo.addClass dojo.marginBox dojo.place dojo.position dojo.removeClass
"dojo/_base/lang", // dojo.hitch
"dojo/_base/sniff", // dojo.isIE dojo.isOpera
Expand Down
1 change: 1 addition & 0 deletions _editor/plugins/EnterKeyHandling.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ define([
"../_Plugin",
"../range",
"dojo/_base/connect", // dojo.keys.ENTER
"dojo/_base/declare", // dojo.declare
"dojo/_base/event", // dojo.stopEvent
"dojo/_base/html", // dojo.destroy dojo.place
"dojo/_base/lang", // dojo.hitch
Expand Down
1 change: 1 addition & 0 deletions _editor/plugins/FontChoice.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ define([
"dojo/i18n", // dojo.i18n.getLocalization
"dojo/i18n!../nls/FontChoice",
"dojo/_base/array", // dojo.indexOf dojo.map
"dojo/_base/declare", // dojo.declare
"dojo/_base/html", // dojo.place
"dojo/_base/lang", // dojo.delegate dojo.hitch dojo.isString
"dojo/_base/window" // dojo.withGlobal
Expand Down
1 change: 1 addition & 0 deletions _editor/plugins/FullScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ define([
"../../form/ToggleButton",
"dojo/i18n!../nls/commands",
"dojo/_base/connect", // dojo.connect dojo.disconnect dojo.keys.F11 dojo.keys.TAB
"dojo/_base/declare", // dojo.declare
"dojo/_base/event", // dojo.stopEvent
"dojo/_base/html", // dojo.addClass dojo.marginBox dojo.removeClass dojo.style
"dojo/_base/lang", // dojo.hitch
Expand Down
1 change: 1 addition & 0 deletions _editor/plugins/LinkDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ define([
"dojo/i18n!../../nls/common",
"dojo/i18n!../nls/LinkDialog",
"dojo/_base/connect", // dojo.keys.ENTER
"dojo/_base/declare", // dojo.declare
"dojo/_base/html", // dojo.attr
"dojo/_base/lang", // dojo.delegate dojo.hitch dojo.trim
"dojo/_base/sniff", // dojo.isIE
Expand Down
1 change: 1 addition & 0 deletions _editor/plugins/NewPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ define([
"../../form/Button",
"dojo/i18n", // dojo.i18n.getLocalization
"dojo/i18n!../nls/commands",
"dojo/_base/declare", // dojo.declare
"dojo/_base/lang" // dojo.hitch
], function(dojo, dijit){

Expand Down
1 change: 1 addition & 0 deletions _editor/plugins/Print.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ define([
"../../form/Button",
"dojo/i18n", // dojo.i18n.getLocalization
"dojo/i18n!../nls/commands",
"dojo/_base/declare", // dojo.declare
"dojo/_base/lang", // dojo.hitch
"dojo/_base/sniff" // dojo.isChrome dojo.isOpera
], function(dojo, dijit){
Expand Down
2 changes: 2 additions & 0 deletions _editor/plugins/TextColor.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ define([
"../_Plugin",
"../../form/DropDownButton",
"../../ColorPalette",
"dojo/_base/connect", // dojo.subscribe
"dojo/_base/declare", // dojo.declare
"dojo/colors" // dojo.colorFromRgb
], function(dojo, dijit){

Expand Down
1 change: 1 addition & 0 deletions _editor/plugins/ViewSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ define([
"dojo/i18n!../nls/commands",
"dojo/_base/array", // dojo.forEach
"dojo/_base/connect", // dojo.connect dojo.disconnect dojo.keys.F12
"dojo/_base/declare", // dojo.declare
"dojo/_base/event", // dojo.stopEvent
"dojo/_base/html", // dojo.attr dojo.create dojo.marginBox dojo.place dojo.position dojo.style
"dojo/_base/lang", // dojo.hitch
Expand Down
1 change: 1 addition & 0 deletions _editor/range.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ define([
"dojo/_base/kernel",
"..",
"dojo/_base/array", // dojo.every
"dojo/_base/declare", // dojo.declare
"dojo/_base/lang", // dojo.isArray
"dojo/_base/window" // dojo.global
], function(dojo, dijit){
Expand Down
3 changes: 0 additions & 3 deletions _tree/dndSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,4 @@ define([
dojo.getObject("_tree", true, dijit);

dijit._tree.dndSource = dijit.tree.dndSource;


return dijit._tree.dndSource;
});
3 changes: 1 addition & 2 deletions dijit-all.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
define([
"dojo/_base/kernel",
".",
"./dijit",
"./ColorPalette",
Expand Down Expand Up @@ -58,7 +57,7 @@ define([
"./layout/SplitContainer",
"./layout/StackContainer",
"./layout/TabContainer"
], function(dojo, dijit){
], function(dijit){

// module:
// dijit/dijit-all
Expand Down
3 changes: 1 addition & 2 deletions dijit.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
define([
"dojo/_base/kernel",
".",
"./_base",
"dojo/parser",
Expand All @@ -9,7 +8,7 @@ define([
"./layout/_LayoutWidget",
"./form/_FormWidget",
"./form/_FormValueWidget"
], function(dojo, dijit){
], function(dijit){

// module:
// dijit/dijit
Expand Down
1 change: 1 addition & 0 deletions form/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ define([
"./_ButtonMixin",
"../_Container",
"../_HasDropDown",
"dojo/_base/declare", // dojo.declare
"dojo/_base/html", // dojo.toggleClass
"dojo/_base/lang" // dojo.trim
], function(dojo, dijit, template, require){
Expand Down
1 change: 1 addition & 0 deletions form/ComboButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ define([
"../focus", // dijit.focus()
"./DropDownButton",
"dojo/_base/connect", // dojo.keys
"dojo/_base/declare", // dojo.declare
"dojo/_base/event" // dojo.stopEvent
], function(dojo, dijit, template){

Expand Down
1 change: 1 addition & 0 deletions form/DropDownButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ define([
"../_Container",
"../_HasDropDown",
"dojo/_base/connect", // dojo.connect dojo.disconnect
"dojo/_base/declare", // dojo.declare
"dojo/query" // dojo.query
], function(dojo, dijit, template, popup){

Expand Down
1 change: 1 addition & 0 deletions form/HorizontalRule.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
define([
"dojo/_base/kernel",
"..",
"dojo/_base/declare", // dojo.declare
"../_Widget",
"../_TemplatedMixin"
], function(dojo, dijit){
Expand Down
1 change: 1 addition & 0 deletions form/HorizontalRuleLabels.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ define([
"dojo/_base/kernel",
"..",
"./HorizontalRule",
"dojo/_base/declare", // dojo.declare
"dojo/number", // dojo.number.format
"dojo/query" // dojo.query
], function(dojo, dijit){
Expand Down
1 change: 1 addition & 0 deletions form/MultiSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ define([
"..",
"./_FormValueWidget",
"dojo/_base/array", // dojo.indexOf
"dojo/_base/declare", // dojo.declare
"dojo/_base/html", // dojo.marginBox
"dojo/query" // dojo.query
], function(dojo, dijit){
Expand Down
3 changes: 2 additions & 1 deletion form/NumberSpinner.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ define([
"..",
"./_Spinner",
"./NumberTextBox",
"dojo/_base/connect", // dojo.keys.END dojo.keys.HOME
"dojo/keys", // dojo.keys.END dojo.keys.HOME
"dojo/_base/declare", // dojo.declare
"dojo/_base/event" // dojo.stopEvent
], function(dojo, dijit){

Expand Down
1 change: 1 addition & 0 deletions form/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ define([
"../Tooltip",
"dojo/i18n!./nls/validate",
"dojo/_base/array", // dojo.forEach
"dojo/_base/declare", // dojo.declare
"dojo/_base/event", // dojo.stopEvent
"dojo/_base/html", // dojo.addClass dojo.attr dojo.create dojo.marginBox dojo.removeClass dojo.toggleClass
"dojo/_base/lang", // dojo.hitch
Expand Down
1 change: 1 addition & 0 deletions form/SimpleTextarea.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ define([
"dojo/_base/kernel",
"..",
"./TextBox",
"dojo/_base/declare", // dojo.declare
"dojo/_base/html", // dojo.addClass
"dojo/_base/sniff", // dojo.isIE dojo.isOpera
"dojo/_base/window" // dojo.doc.selection dojo.doc.selection.createRange
Expand Down
2 changes: 0 additions & 2 deletions form/Slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,4 @@ define([
// For back-compat, remove for 2.0

dojo.deprecated("Call require() for HorizontalSlider / VerticalRule, explicitly rather than 'dijit.form.Slider' itself", "", "2.0");

return dijit.form.HorizontalSlider;
});
1 change: 1 addition & 0 deletions form/Textarea.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ define([
"..",
"./SimpleTextarea",
"./_ExpandingTextAreaMixin",
"dojo/_base/declare", // dojo.declare
"dojo/_base/html" // dojo.style
], function(dojo, dijit){

Expand Down
1 change: 1 addition & 0 deletions form/_ButtonMixin.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
define([
"dojo/_base/kernel",
"..",
"dojo/_base/declare", // dojo.declare
"dojo/_base/event", // dojo.stopEvent
"dojo/_base/html" // dojo.setSelectable
], function(dojo, dijit){
Expand Down
1 change: 1 addition & 0 deletions form/_ComboBoxMenuMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ define([
"dojo/_base/kernel",
"..",
"dojo/_base/array", // dojo.forEach
"dojo/_base/declare", // dojo.declare
"dojo/_base/html", // dojo.attr
"dojo/_base/window", // dojo.doc.createTextNode
"dojo/i18n" // dojo.i18n.getLocalization
Expand Down
1 change: 1 addition & 0 deletions form/_FormSelectWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ define([
"dojo/data/util/sorter", // dojo.data.util.sorter.createSortFunction
"dojo/_base/array", // dojo.filter dojo.forEach dojo.map dojo.some
"dojo/_base/connect", // dojo.connect dojo.disconnect
"dojo/_base/declare", // dojo.declare
"dojo/_base/html", // dojo.setSelectable dojo.toggleClass
"dojo/_base/lang", // dojo.delegate dojo.isArray dojo.isObject
"dojo/data/api/Identity", // dojo.data.api.Identity
Expand Down
Loading

0 comments on commit aa4c588

Please sign in to comment.