From 328be70544c18d8968eec2a9901c575c436d2c50 Mon Sep 17 00:00:00 2001 From: Bill Keese Date: Sat, 21 Jul 2012 07:59:46 +0000 Subject: [PATCH] dijit, dojo, util: fix more dojodoc misformatting, refs #13101 !strict git-svn-id: http://svn.dojotoolkit.org/src/dojo/trunk@29358 560b804f-0ae3-0310-86f3-f6aa0a117693 --- _base/lang.js | 4 ++-- _base/loader.js | 26 +++++++++++----------- _base/xhr.js | 7 +++--- back.js | 15 +++++++------ data/ItemFileReadStore.js | 2 +- data/ObjectStore.js | 16 ++++++------- data/api/Read.js | 4 ++-- io/script.js | 14 +++++++----- query.js | 3 +-- request/watch.js | 5 +++-- rpc/JsonpService.js | 2 +- selector/acme.js | 3 +-- store/Memory.js | 20 ++++++++--------- store/api/Store.js | 4 +--- tests/_base/loader/requirejs/depoverlap.js | 3 +-- 15 files changed, 64 insertions(+), 64 deletions(-) diff --git a/_base/lang.js b/_base/lang.js index e54e5f5afa..a0cf73dbb5 100644 --- a/_base/lang.js +++ b/_base/lang.js @@ -534,8 +534,8 @@ define(["./kernel", "../has", "../sniff"], function(dojo, has){ // String to be used as a template. // map: Object|Function // If an object, it is used as a dictionary to look up substitutions. - // If a function, it is called for every substitution with following - // parameters: a whole match, a name, an offset, and the whole template + // If a function, it is called for every substitution with following parameters: + // a whole match, a name, an offset, and the whole template // string (see https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/replace // for more details). // pattern: RegEx? diff --git a/_base/loader.js b/_base/loader.js index ac4971e419..0b4cc665fc 100644 --- a/_base/loader.js +++ b/_base/loader.js @@ -517,17 +517,17 @@ define(["./kernel", "../has", "require", "module", "./json", "./lang", "./array" has.add("config-publishRequireResult", 1, 0, 0); dojo.require = function(moduleName, omitModuleCheck) { - // summary: + // summary: // loads a Javascript module from the appropriate URI // - // moduleName: String + // moduleName: String // module name to load, using periods for separators, // e.g. "dojo.date.locale". Module paths are de-referenced by dojo's // internal mapping of locations to names and are disambiguated by // longest prefix. See `dojo.registerModulePath()` for details on // registering new modules. // - // omitModuleCheck: Boolean? + // omitModuleCheck: Boolean? // if `true`, omitModuleCheck skips the step of ensuring that the // loaded file actually defines the symbol it is referenced by. // For example if it called as `dojo.require("a.b.c")` and the @@ -535,7 +535,7 @@ define(["./kernel", "../has", "require", "module", "./json", "./lang", "./array" // and exception will be throws whereas no exception is raised // when called as `dojo.require("a.b.c", true)` // - // description: + // description: // Modules are loaded via dojo.require by using one of two loaders: the normal loader // and the xdomain loader. The xdomain loader is used when dojo was built with a // custom build that specified loader=xdomain and the module lives on a modulePath @@ -585,7 +585,7 @@ define(["./kernel", "../has", "require", "module", "./json", "./lang", "./array" // the current namespace. It is presumed that the caller will // take care of that. // - // example: + // example: // To use dojo.require in conjunction with dojo.ready: // // | dojo.require("foo"); @@ -594,7 +594,7 @@ define(["./kernel", "../has", "require", "module", "./json", "./lang", "./array" // | //you can now safely do something with foo and bar // | }); // - // example: + // example: // For example, to import all symbols into a local block, you might write: // // | with (dojo.require("A.B")) { @@ -606,7 +606,7 @@ define(["./kernel", "../has", "require", "module", "./json", "./lang", "./array" // | var B = dojo.require("A.B"); // | ... // - // returns: + // returns: // the required namespace object function doRequire(mid, omitModuleCheck){ var module = getModule(slashName(mid), require.module); @@ -678,14 +678,14 @@ define(["./kernel", "../has", "require", "module", "./json", "./lang", "./array" }; dojo.registerModulePath = function(/*String*/moduleName, /*String*/prefix){ - // summary: + // summary: // Maps a module name to a path - // description: + // description: // An unregistered module is given the default path of ../[module], // relative to Dojo root. For example, module acme is mapped to // ../acme. If you want to use a different module name, use // dojo.registerModulePath. - // example: + // example: // If your dojo.js is located at this location in the web root: // | /myapp/js/dojo/dojo/dojo.js // and your modules are located at: @@ -712,10 +712,10 @@ define(["./kernel", "../has", "require", "module", "./json", "./lang", "./array" }; dojo.platformRequire = function(/*Object*/modMap){ - // summary: + // summary: // require one or more modules based on which host environment // Dojo is currently operating in - // description: + // description: // This method takes a "map" of arrays which one can use to // optionally load dojo modules. The map is indexed by the // possible dojo.name_ values, with two additional values: @@ -724,7 +724,7 @@ define(["./kernel", "../has", "require", "module", "./json", "./lang", "./array" // dojo.name_, set by your host environment. The items in the // "common" array will *always* be loaded, regardless of which // list is chosen. - // example: + // example: // | dojo.platformRequire({ // | browser: [ // | "foo.sample", // simple module diff --git a/_base/xhr.js b/_base/xhr.js index d983366685..522ad219fd 100644 --- a/_base/xhr.js +++ b/_base/xhr.js @@ -453,7 +453,7 @@ define([ dojo._ioCancelAll = watch.cancelAll; /*===== dojo._ioCancelAll = function(){ - //summary: + // summary: // Cancels all pending IO requests, regardless of IO type // (xhr, script, iframe). }; @@ -512,8 +512,9 @@ define([ var _defaultContentType = "application/x-www-form-urlencoded"; dojo._ioAddQueryToUrl = function(/*dojo.__IoCallbackArgs*/ioArgs){ - //summary: Adds query params discovered by the io deferred construction to the URL. - //Only use this for operations which are fundamentally GET-type operations. + // summary: + // Adds query params discovered by the io deferred construction to the URL. + // Only use this for operations which are fundamentally GET-type operations. if(ioArgs.query.length){ ioArgs.url += (ioArgs.url.indexOf("?") == -1 ? "?" : "&") + ioArgs.query; ioArgs.query = null; diff --git a/back.js b/back.js index d930395844..75a2e8de3c 100644 --- a/back.js +++ b/back.js @@ -62,7 +62,8 @@ define(["./_base/config", "./_base/lang", "./sniff", "./dom", "./dom-construct", back.goBack = handleBackButton; function handleForwardButton(){ - //summary: private method. Do not call this directly. + // summary: + // private method. Do not call this directly. var last = forwardStack.pop(); if(!last){ return; } if(last.kwArgs["forward"]){ @@ -141,10 +142,10 @@ define(["./_base/config", "./_base/lang", "./sniff", "./dom", "./dom-construct", } back.init = function(){ - //summary: + // summary: // Initializes the undo stack. This must be called from a