Skip to content

Commit

Permalink
Add doc to top level dojox/ files, in general telling people to load …
Browse files Browse the repository at this point in the history
…the individual modules inside the package directories instead, refs #13101 !strict.

git-svn-id: http://svn.dojotoolkit.org/src/dojox/trunk@29268 560b804f-0ae3-0310-86f3-f6aa0a117693
  • Loading branch information
wkeese committed Jul 17, 2012
1 parent 169610a commit 8e05eba
Show file tree
Hide file tree
Showing 25 changed files with 188 additions and 27 deletions.
7 changes: 7 additions & 0 deletions analytics.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
define(["./analytics/_base"], function(analytics) {
/*=====
return {
// summary:
// Deprecated. Should require dojox/analytics modules directly rather than trying to access them through
// this module.
};
=====*/
return analytics;
});
8 changes: 7 additions & 1 deletion collections.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
define(["./collections/_base"], function(collections){
return collections;
/*=====
return {
// summary:
// Deprecated. Should require dojox/collections modules directly rather than trying to access them through
// this module.
};
=====*/ return collections;
});
7 changes: 7 additions & 0 deletions color.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
define(["./color/_base"], function(dxcolor){
/*=====
return {
// summary:
// Deprecated. Should require dojox/color modules directly rather than trying to access them through
// this module.
};
=====*/
return dxcolor;
});
5 changes: 2 additions & 3 deletions data/util/JsonQuery.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
define("dojox/data/util/JsonQuery", ["dojo", "dojox"], function(dojo, dojox) {
define(["dojo", "dojox"], function(dojo, dojox) {

// this is a mixin to convert object attribute queries to
// JSONQuery/JSONPath syntax to be sent to the server.
dojo.declare("dojox.data.util.JsonQuery", null, {
return dojo.declare("dojox.data.util.JsonQuery", null, {
useFullIdInQueries: false,
_toJsonQuery: function(args, jsonQueryPagination){
var first = true;
Expand Down Expand Up @@ -94,5 +94,4 @@ dojo.declare("dojox.data.util.JsonQuery", null, {

});

return dojox.data.util.JsonQuery;
});
8 changes: 7 additions & 1 deletion drawing.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
//dojo.provide("dojox.drawing");dojo.require("dojox.drawing._base");
define(['./drawing/_base'],function(){
/*=====
return {
// summary:
// Deprecated. Should require dojox/drawing modules directly rather than trying to access them through
// this module.
};
=====*/
});
7 changes: 7 additions & 0 deletions dtl.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
define(["./dtl/_base"], function(dxdtl){
/*=====
return {
// summary:
// Deprecated. Should require dojox/dtl modules directly rather than trying to access them through
// this module.
};
=====*/
return dxdtl;
});
6 changes: 3 additions & 3 deletions editor/plugins/PasteFromWord.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ define([
"dojo/i18n!dijit/_editor/nls/commands"
], function(dojo, dijit, dojox, _Plugin) {

dojo.declare("dojox.editor.plugins.PasteFromWord", _Plugin, {
var PasteFromWord = dojo.declare("dojox.editor.plugins.PasteFromWord", _Plugin, {
// summary:
// This plugin provides PasteFromWord capability to the editor. When
// clicked, a dialog opens with a spartan RichText instance to paste
Expand Down Expand Up @@ -218,12 +218,12 @@ dojo.subscribe(dijit._scopeName + ".Editor.getPlugin",null,function(o){
if(o.plugin){ return; }
var name = o.args.name.toLowerCase();
if(name === "pastefromword"){
o.plugin = new dojox.editor.plugins.PasteFromWord({
o.plugin = new PasteFromWord({
width: ("width" in o.args)?o.args.width:"400px",
height: ("height" in o.args)?o.args.width:"300px"
});
}
});

return dojox.editor.plugins.PasteFromWord;
return PasteFromWord;
});
11 changes: 9 additions & 2 deletions flash.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
dojo.provide("dojox.flash");
dojo.require("dojox.flash._base");
define(['./flash/_base'],function(){
/*=====
return {
// summary:
// Deprecated. Should require dojox/flash modules directly rather than trying to access them through
// this module.
};
=====*/
});
7 changes: 7 additions & 0 deletions fx.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
define(["./fx/_base"], function(DojoxFx){
/*=====
return {
// summary:
// Deprecated. Should require dojox/fx modules directly rather than trying to access them through
// this module.
};
=====*/
return DojoxFx;
});
12 changes: 10 additions & 2 deletions gfx3d.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
// AMD-ID "dojox/gfx3d"
define(["dojo/_base/kernel","dojox","./gfx3d/matrix","./gfx3d/_base","./gfx3d/object"], function(dojo,dojox) {
dojo.getObject("gfx3d", true, dojox);
dojo.getObject("gfx3d", true, dojox);

return dojox.gfx3d;
/*=====
return {
// summary:
// Deprecated. Should require dojox/gfx3d modules directly rather than trying to access them through
// this module.
};
=====*/

return dojox.gfx3d;
});
7 changes: 7 additions & 0 deletions highlight.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
define(["./highlight/_base"], function(highlight){
/*=====
return {
// summary:
// Deprecated. Should require dojox/highlight modules directly rather than trying to access them through
// this module.
};
=====*/
return highlight;
});
7 changes: 7 additions & 0 deletions html.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
define(["./html/_base"], function (html) {
/*=====
return {
// summary:
// Deprecated. Should require dojox/html modules directly rather than trying to access them through
// this module.
};
=====*/
return html;
});
7 changes: 7 additions & 0 deletions image.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
define(["./image/_base"], function(image){
/*=====
return {
// summary:
// Deprecated. Should require dojox/image modules directly rather than trying to access them through
// this module.
};
=====*/
return image;
});
11 changes: 9 additions & 2 deletions jsonPath.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
dojo.provide("dojox.jsonPath");
dojo.require("dojox.jsonPath.query");
define(['./jsonPath/query'],function(){
/*=====
return {
// summary:
// Deprecated. Should require dojox/jsonPath modules directly rather than trying to access them through
// this module.
};
=====*/
});
10 changes: 8 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
define(["dojo/_base/kernel"], function(dojo) {
// module:
// dojox/main
// summary:
// The dojox package main module; dojox package is somewhat unusual in that the main module currently just provides an empty object.

/*=====
return {
// summary:
// The dojox package main module; dojox package is somewhat unusual in that the main module currently just provides an empty object.
// Apps should require modules from the dojox packages directly, rather than loading this module.
};
=====*/

return dojo.dojox;
});
12 changes: 10 additions & 2 deletions math.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
// AMD-ID "dojox/math"
define(["dojo", "dojox", "dojox/math/_base"], function(dojo, dojox, math) {
dojo.getObject("math", true, dojox);
dojo.getObject("math", true, dojox);

return dojox.math;
/*=====
return {
// summary:
// Deprecated. Should require dojox/math modules directly rather than trying to access them through
// this module.
};
=====*/

return dojox.math;
});
7 changes: 7 additions & 0 deletions mobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,12 @@ define([
"dojox/mobile/_base"
], function(dojox, lang, base){
lang.getObject("mobile", true, dojox);
/*=====
return {
// summary:
// Deprecated. Should require dojox/mobile classes directly rather than trying to access them through
// this module.
};
=====*/
return dojox.mobile;
});
10 changes: 8 additions & 2 deletions mvc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
define(["./mvc/_base"], function(dxmvc){
// module:
// dojox/mvc
// summary:
// Adds elements of MVC support to Dojo.

/*=====
return {
// summary:
// Deprecated. Should require dojox/mvc modules directly rather than trying to access them through
// this module.
};
=====*/

return dxmvc;
});
8 changes: 8 additions & 0 deletions sketch.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,13 @@ define([
"./sketch/Toolbar"
], function(dojo){
dojo.getObject("sketch", true, dojox);

/*=====
return {
// summary:
// Deprecated. Should require dojox/sketch modules directly rather than trying to access them through
// this module.
};
=====*/
return dojox.sketch;
});
11 changes: 9 additions & 2 deletions sql.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
dojo.provide("dojox.sql");
dojo.require("dojox.sql._base");
define(['./sql/_base'],function(){
/*=====
return {
// summary:
// Deprecated. Should require dojox/sql modules directly rather than trying to access them through
// this module.
};
=====*/
});
11 changes: 9 additions & 2 deletions storage.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
dojo.provide("dojox.storage");
dojo.require("dojox.storage._common");
define(['./storage/_common'],function(){
/*=====
return {
// summary:
// Deprecated. Should require dojox/storage modules directly rather than trying to access them through
// this module.
};
=====*/
});
7 changes: 7 additions & 0 deletions timing.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
define(["./timing/_base"], function(timing){
/*=====
return {
// summary:
// Deprecated. Should require dojox/timing modules directly rather than trying to access them through
// this module.
};
=====*/
return timing;
});
8 changes: 8 additions & 0 deletions uuid.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
define(['dojox/uuid/_base'], function(uuid){

/*=====
return {
// summary:
// Deprecated. Should require dojox/uuid modules directly rather than trying to access them through
// this module.
};
=====*/
return uuid;
});
9 changes: 9 additions & 0 deletions validate.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
define(["./validate/_base"], function(validate){

/*=====
return {
// summary:
// Deprecated. Should require dojox/validate modules directly rather than trying to access them through
// this module.
};
=====*/

return validate;
});
12 changes: 9 additions & 3 deletions wire.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
dojo.provide("dojox.wire");
dojo.require("dojox.wire._base");

define(['./wire/_base'],function(){
/*=====
return {
// summary:
// Deprecated. Should require dojox/wire modules directly rather than trying to access them through
// this module.
};
=====*/
});

0 comments on commit 8e05eba

Please sign in to comment.