Skip to content

Commit ddb9978

Browse files
committed
Fix indentation errors: our API doc shouldn't have any indentation (beyond the initial two tabs) except for code blocks or nested lists. Refs #13101 !strict
1 parent 3ff01c6 commit ddb9978

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+479
-436
lines changed

av/FLAudio.js

+19-19
Original file line numberDiff line numberDiff line change
@@ -148,18 +148,18 @@ return dojo.declare("dojox.av.FLAudio", null, {
148148
// Adds a media object to the playlist
149149
// ***This can be called repeatedly to add multiple items.
150150
// options: Object
151-
// url: String
151+
// - url: String:
152152
// (required) path to MP3 media
153153
// url must be absolute or relative to SWF,
154154
// not dojo or the html. An effort will be made
155155
// to fix incorrect paths.
156-
// id: String
156+
// - id: String:
157157
// (optional) an identifier to later determine
158158
// which media to control.
159159
// returns:
160160
// The normalized url, which can be used to identify the
161161
// audio.
162-
//
162+
163163
if(dojox.timing.doLater(this.flashMedia, this)){ return false; }
164164
if(!options.url){
165165
throw new Error("An url is required for loading media");
@@ -181,12 +181,12 @@ return dojo.declare("dojox.av.FLAudio", null, {
181181
// Tell media to play, based on
182182
// the options passed.
183183
// options: Object
184-
// - volume: Number
184+
// - volume: Number:
185185
// Sets the volume
186-
// - pan: Number
186+
// - pan: Number:
187187
// Sets left/right pan
188-
// - index:Number OR id:String OR url:String
189-
// Choose one of the above to indentify
188+
// - index:Number OR id:String OR url:String:
189+
// Choose one of the above to identify
190190
// the media you wish to control. id is
191191
// set by you. index is the order in which
192192
// media was added (zero based)
@@ -203,8 +203,8 @@ return dojo.declare("dojox.av.FLAudio", null, {
203203
// Tell media to pause, based on identifier in
204204
// the options passed.
205205
// options: Object
206-
// index:Number OR id:String OR url:String
207-
// See doPlay()
206+
// index:Number OR id:String OR url:String.
207+
// See doPlay().
208208

209209
this.flashMedia.pause(options);
210210
},
@@ -214,8 +214,8 @@ return dojo.declare("dojox.av.FLAudio", null, {
214214
// Tell media to stop, based on identifier in
215215
// the options passed.
216216
// options:
217-
// index:Number OR id:String OR url:String
218-
// See doPlay()
217+
// index:Number OR id:String OR url:String.
218+
// See doPlay().
219219

220220
this.flashMedia.doStop(options);
221221
},
@@ -227,8 +227,8 @@ return dojo.declare("dojox.av.FLAudio", null, {
227227
// options:
228228
// volume: Number
229229
// 0 to 1
230-
// index:Number OR id:String OR url:String
231-
// See doPlay()
230+
// index:Number OR id:String OR url:String.
231+
// See doPlay().
232232

233233
this.flashMedia.setVolume(options);
234234
},
@@ -249,8 +249,8 @@ return dojo.declare("dojox.av.FLAudio", null, {
249249
// Get media volume, based on identifier in
250250
// the options passed.
251251
// options:
252-
// index:Number OR id:String OR url:String
253-
// See doPlay()
252+
// index:Number OR id:String OR url:String.
253+
// See doPlay().
254254

255255
return this.flashMedia.getVolume(options);
256256
},
@@ -260,8 +260,8 @@ return dojo.declare("dojox.av.FLAudio", null, {
260260
// Set media pan, based on identifier in
261261
// the options passed.
262262
// options:
263-
// index:Number OR id:String OR url:String
264-
// See doPlay()
263+
// index:Number OR id:String OR url:String.
264+
// See doPlay().
265265

266266
return this.flashMedia.getPan(options);
267267
},
@@ -270,8 +270,8 @@ return dojo.declare("dojox.av.FLAudio", null, {
270270
// summary:
271271
// Get the current time.
272272
// options:
273-
// index:Number OR id:String OR url:String
274-
// See doPlay()
273+
// index:Number OR id:String OR url:String.
274+
// See doPlay().
275275

276276
return this.flashMedia.getPosition(options);
277277
},

av/FLVideo.js

+7-5
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,13 @@ dojo.declare("dojox.av.FLVideo", [_Widget, _Media], {
176176
onMetaData: function(data, evt){
177177
// summary:
178178
// The video properties. Width, height, duration, etc.
179-
// NOTE: if data is empty, this is an older FLV with no meta data.
180-
// Duration cannot be determined. In original FLVs, duration
181-
// could only be obtained with Flash Media Server.
182-
// NOTE: Older FLVs can still return width and height
183-
// and will do so on a second event call
179+
//
180+
// NOTE: if data is empty, this is an older FLV with no meta data.
181+
// Duration cannot be determined. In original FLVs, duration
182+
// could only be obtained with Flash Media Server.
183+
//
184+
// NOTE: Older FLVs can still return width and height
185+
// and will do so on a second event call
184186
},
185187
186188
onPosition: function( time){

charting/BidiSupport.js

+13-9
Original file line numberDiff line numberDiff line change
@@ -160,15 +160,19 @@ define(["../main", "dojo/_base/lang", "dojo/dom-style", "dojo/_base/array", "doj
160160
// Enables bidi support for truncated labels.
161161
// description:
162162
// Can be two types of labels: html or gfx.
163-
// gfx labels:
164-
// Need to be stored in registry to be used when the textDir will be set dynamically.
165-
// Additional work on truncated labels is needed for case as 111111A (A stands for "bidi" character rtl directioned).
166-
// let say in this case the truncation is "111..." If the textDir is auto, the display should be: "...111" but in gfx
167-
// case we will get "111...". Because this.surface.setTextDir will calculate the dir of truncated
168-
// label, which value is "111..." but th real is "111111A".
169-
// each time we created a gfx truncated label we store it in the truncatedLabelsRegistry.
170-
// html labels:
171-
// no need for repository (stored in another place). Here we only need to update the current dir according to textDir.
163+
//
164+
// ####gfx labels:
165+
//
166+
// Need to be stored in registry to be used when the textDir will be set dynamically.
167+
// Additional work on truncated labels is needed for case as 111111A (A stands for "bidi" character rtl directioned).
168+
// let's say in this case the truncation is "111..." If the textDir is auto, the display should be: "...111" but in gfx
169+
// case we will get "111...". Because this.surface.setTextDir will calculate the dir of truncated
170+
// label, which value is "111..." but th real is "111111A".
171+
// each time we created a gfx truncated label we store it in the truncatedLabelsRegistry.
172+
//
173+
// ####html labels:
174+
//
175+
// no need for repository (stored in another place). Here we only need to update the current dir according to textDir.
172176
// tags:
173177
// private
174178

charting/DataChart.js

+7-13
Original file line numberDiff line numberDiff line change
@@ -144,20 +144,14 @@ define(["dojo/_base/kernel", "dojo/_base/lang", "dojo/_base/declare", "dojo/_bas
144144
// summary:
145145
// Set up properties and initialize chart build.
146146
// node: DomNode
147-
// The node to attach the chart to.
147+
// The node to attach the chart to.
148148
// kwArgs: Object
149-
// xaxis: Object
150-
// optional parameters for xaxis (see above)
151-
// yaxis: Object
152-
// optional parameters for yaxis (see above)
153-
// store: Object
154-
// dojo.data store (currently nly supports Persevere)
155-
// xaxis: Object
156-
// First query for store
157-
// grid: Object
158-
// Options for the grid plot
159-
// chartPlot: Object
160-
// Options for chart elements (lines, bars, etc)
149+
// - xaxis: Object: optional parameters for xaxis (see above)
150+
// - yaxis: Object: optional parameters for yaxis (see above)
151+
// - store: Object: dojo.data store (currently nly supports Persevere)
152+
// - xaxis: Object: First query for store
153+
// - grid: Object: Options for the grid plot
154+
// - chartPlot: Object: Options for chart elements (lines, bars, etc)
161155

162156
this.domNode = dom.byId(node);
163157

charting/SimpleTheme.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ define(["dojo/_base/lang", "dojo/_base/array","dojo/_base/declare","dojo/_base/C
4040
// theme object from a Chart, and not in the theme itself (i.e. either do that before using .setTheme
4141
// on a chart).
4242
//
43-
// example:
44-
// The default theme (and structure) looks like so:
43+
// example:
44+
// The default theme (and structure) looks like so:
4545
// | // all objects are structs used directly in dojox.gfx
4646
// | chart:{
4747
// | stroke: null,

charting/plot2d/CartesianBase.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ define(["dojo/_base/lang", "dojo/_base/declare", "dojo/_base/connect",
4848
// Compute page coordinates from plot axis data coordinates.
4949
// coord: Object?
5050
// The coordinates in plot axis data coordinate space. For cartesian charts that is of the following form:
51-
// `{ hAxisName: 50, vAxisName: 200 }`
52-
// If not provided return the tranform method instead of the result of the transformation.
51+
// `{ hAxisName: 50, vAxisName: 200 }`
52+
// If not provided return the transform method instead of the result of the transformation.
5353
// returns: Object
5454
// The resulting page pixel coordinates. That is of the following form:
55-
// `{ x: 50, y: 200 }`
55+
// `{ x: 50, y: 200 }`
5656
var ah = this._hAxis, av = this._vAxis,
5757
sh = ah.getScaler(), sv = av.getScaler(),
5858
th = sh.scaler.getTransformerFromModel(sh),
@@ -74,11 +74,11 @@ define(["dojo/_base/lang", "dojo/_base/declare", "dojo/_base/connect",
7474
// Compute plot axis data coordinates from page coordinates.
7575
// coord: Object
7676
// The pixel coordinate in page coordinate space. That is of the following form:
77-
// `{ x: 50, y: 200 }`
77+
// `{ x: 50, y: 200 }`
7878
// If not provided return the tranform method instead of the result of the transformation.
7979
// returns: Object
8080
// The resulting plot axis data coordinates. For cartesian charts that is of the following form:
81-
// `{ hAxisName: 50, vAxisName: 200 }`
81+
// `{ hAxisName: 50, vAxisName: 200 }`
8282
var ah = this._hAxis, av = this._vAxis,
8383
sh = ah.getScaler(), sv = av.getScaler(),
8484
th = sh.scaler.getTransformerFromPlot(sh),

charting/widget/Chart.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ define(["dojo/_base/kernel", "dojo/_base/lang", "dojo/_base/array","dojo/dom-att
268268
// Resize the widget.
269269
// description:
270270
// Resize the domNode and the widget surface to the dimensions of a box of the following form:
271-
// `{ l: 50, t: 200, w: 300: h: 150 }`
271+
// `{ l: 50, t: 200, w: 300: h: 150 }`
272272
// If no box is provided, resize the surface to the marginBox of the domNode.
273273
// box:
274274
// If passed, denotes the new size of the widget.

data/AndOrReadStore.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ return declare("dojox.data.AndOrReadStore", [ItemFileReadStore], {
1111
// AndOrReadStore uses ItemFileReadStore as a base, modifying only the query (_fetchItems) section.
1212
// Supports queries of the form: query:"id:1* OR dept:'Sales Department' || (id:2* && NOT dept:S*)"
1313
// Includes legacy/widget support via:
14-
// query:{complexQuery:"id:1* OR dept:'Sales Department' || (id:2* && NOT dept:S*)"}
14+
// | query:{complexQuery:"id:1* OR dept:'Sales Department' || (id:2* && NOT dept:S*)"}
1515
// The ItemFileReadStore implements the dojo.data.api.Read API and reads
1616
// data from JSON files that have contents in this format --
17-
// { items: [
18-
// { name:'Kermit', color:'green', age:12, friends:['Gonzo', {_reference:{name:'Fozzie Bear'}}]},
19-
// { name:'Fozzie Bear', wears:['hat', 'tie']},
20-
// { name:'Miss Piggy', pets:'Foo-Foo'}
21-
// ]}
22-
// Note that it can also contain an 'identifer' property that specified which attribute on the items
17+
// | { items: [
18+
// | { name:'Kermit', color:'green', age:12, friends:['Gonzo', {_reference:{name:'Fozzie Bear'}}]},
19+
// | { name:'Fozzie Bear', wears:['hat', 'tie']},
20+
// | { name:'Miss Piggy', pets:'Foo-Foo'}
21+
// | ]}
22+
// Note that it can also contain an 'identifier' property that specified which attribute on the items
2323
// in the array of items that acts as the unique identifier for that item.
2424

2525
_containsValue: function( /* item */ item, /* attribute-name-string */ attribute, /* anything */ value, /* String? | RegExp? */ regexp){

data/AppStore.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -744,11 +744,11 @@ dojo.declare("dojox.data.AppStore",
744744
// summary:
745745
// See dojo.data.api.Write.save()
746746
// keywordArgs:
747-
// {
748-
// onComplete: function
749-
// onError: function
750-
// scope: object
751-
// }
747+
// | {
748+
// | onComplete: function
749+
// | onError: function
750+
// | scope: object
751+
// | }
752752
var i;
753753
for(i in this._adds){
754754
this._atomIO.addEntry(this._adds[i], null, function(){}, keywordArgs.onError, false, keywordArgs.scope);

data/CdfStore.js

+32-24
Original file line numberDiff line numberDiff line change
@@ -191,48 +191,56 @@ dojo.declare("dojox.data.CdfStore", null, {
191191
// be return directly as well as within the onComplete method.
192192
//
193193
// note:
194-
// The mode can be set on store initialization or during a fetch as one of the
195-
// parameters.
196-
// query: String
194+
// The mode can be set on store initialization or during a fetch as one of the
195+
// parameters.
196+
//
197+
// See:
198+
//
199+
// - http://www.tibco.com/devnet/resources/gi/3_7/api/html/jsx3/xml/Entity.html#method:selectNodes
200+
// - http://www.w3.org/TR/xpath
201+
// - http://msdn.microsoft.com/en-us/library/ms256086.aspx
202+
//
203+
// See dojo.data.Read.fetch():
204+
//
205+
// - onBegin
206+
// - onComplete
207+
// - onItem
208+
// - onError
209+
// - scope
210+
// - start
211+
// - count
212+
// - sort
213+
// request: String
197214
// The items in the store are treated as objects, but this is reading an XML
198215
// document. Further, the actual querying of the items takes place in Tibco GI's
199216
// jsx3.xml.Entity. Therefore, we are using their syntax which is xpath.
200217
//
201218
// Note:
202-
// As conforming to a CDF document, most, if not all nodes are considered "records"
203-
// and their tagNames are as such. The root node is named "data".
204-
// examples:
219+
// As conforming to a CDF document, most, if not all nodes are considered "records"
220+
// and their tagNames are as such. The root node is named "data".
221+
// example:
205222
// All items:
206223
// | store.fetch({query:"*"});
224+
// example:
207225
// Item with a jsxid attribute equal to "1" (note you could use byId for this)
208226
// | store.fetch({query:"//record[@jsxid='1']"});
227+
// example:
209228
// All items with any jsxid attribute:
210229
// | "//record[@jsxid='*']"
230+
// example:
211231
// The items with a jsxid of '1' or '4':
212232
// | "//record[@jsxid='4' or @jsxid='1']"
233+
// example:
213234
// All children within a "group" node (could be multiple group nodes):
214235
// "//group/record"
236+
// example:
215237
// All children within a specific group node:
216238
// "//group[@name='mySecondGroup']/record"
239+
// example:
217240
// Any record, anywhere in the document:
218241
// | "//record"
219242
// Only the records beneath the root (data) node:
220243
// | "//data/record"
221-
//
222-
// See:
223-
// http://www.tibco.com/devnet/resources/gi/3_7/api/html/jsx3/xml/Entity.html#method:selectNodes
224-
// http://www.w3.org/TR/xpath
225-
// http://msdn.microsoft.com/en-us/library/ms256086.aspx
226-
//
227-
// See dojo.data.Read.fetch():
228-
// onBegin
229-
// onComplete
230-
// onItem
231-
// onError
232-
// scope
233-
// start
234-
// count
235-
// sort
236244

237245
request = request || {};
238246
if(!request.store){
@@ -484,7 +492,7 @@ dojo.declare("dojox.data.CdfStore", null, {
484492
// Subsequent fetches will load the new data.
485493
//
486494
// Note:
487-
// Any items outside the store will no longer be valid and may cause errors.
495+
// Any items outside the store will no longer be valid and may cause errors.
488496

489497
delete this.cdfDoc;
490498
this._modifiedItems = {};
@@ -573,8 +581,8 @@ dojo.declare("dojox.data.CdfStore", null, {
573581
// See dojo.data.api.Identity.fetchItemByIdentity(keywordArgs)
574582
//
575583
// Note:
576-
// This method can be synchronous if mode is set.
577-
// Also, there is a more finger friendly alias of this method, byId();
584+
// This method can be synchronous if mode is set.
585+
// Also, there is a more finger friendly alias of this method, byId();
578586
if(dojo.isString(args)){
579587
var id = args;
580588
args = {query:"//record[@jsxid='"+id+"']", mode: dojox.data.SYNC_MODE};

data/ClientFilter.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@ define(["dojo/_base/declare", "dojo/_base/lang", "dojo/_base/array", "dojo/_base
3232
// results by itself in this case. In this situations, data stores can provide a isUpdateable(request) function
3333
// and matchesQuery(item,request) function. If a data store can handle a query, it can return true from
3434
// isUpdateable and if an item matches a query, it can return true from matchesQuery. Here is
35-
// definition of isUpdateable and matchesQuery
36-
// isUpdateable(request) - request is the keywords arguments as is passed to the fetch function.
37-
// matchesQuery(item,request) - item is the item to test, and request is the value arguments object
38-
// for the fetch function.
35+
// definition of isUpdateable and matchesQuery:
36+
//
37+
// - isUpdateable(request) - request is the keywords arguments as is passed to the fetch function.
38+
// - matchesQuery(item,request) - item is the item to test, and request is the value arguments object
39+
// for the fetch function.
3940
//
4041
// You can define a property on this object instance "cacheByDefault" to a value of true that will
4142
// cause all queries to be cached by default unless the cache queryOption is explicitly set to false.

data/CssClassStore.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ return declare("dojox.data.CssClassStore", CssRuleStore, {
77
// description:
88
// The CssClassStore allows users to get information about active Css classes in the page running the CssClassStore.
99
// It can also filter out classes from specific stylesheets. The attributes it exposes on classes are as follows:
10-
// class: The classname, including the '.'.
11-
// classSans: The classname without the '.'.
10+
//
11+
// - class: The classname, including the '.'.
12+
// - classSans: The classname without the '.'.
1213

1314
// _labelAttribute:
1415
// text representation of the Item [label and identifier may need to stay due to method names]

0 commit comments

Comments
 (0)