Skip to content

Commit 3ff01c6

Browse files
committed
another list fix, refs #13101 !strict
1 parent 7d0b90a commit 3ff01c6

File tree

1 file changed

+19
-20
lines changed

1 file changed

+19
-20
lines changed

json/query.js

+19-20
Original file line numberDiff line numberDiff line change
@@ -105,52 +105,51 @@ define(["dojo/_base/kernel", "dojo/_base/lang", "dojox", "dojo/_base/array"], fu
105105
// the starting object, various operators can be successively applied, each operating
106106
// on the result of the last operation.
107107
//
108-
// Supported Operators:
108+
// Supported Operators
109109
// --------------------
110-
// * .property - This will return the provided property of the object, behaving exactly
110+
//
111+
// - .property - This will return the provided property of the object, behaving exactly
111112
// like JavaScript.
112-
// * [expression] - This returns the property name/index defined by the evaluation of
113+
// - [expression] - This returns the property name/index defined by the evaluation of
113114
// the provided expression, behaving exactly like JavaScript.
114-
// * [?expression] - This will perform a filter operation on an array, returning all the
115+
// - [?expression] - This will perform a filter operation on an array, returning all the
115116
// items in an array that match the provided expression. This operator does not
116117
// need to be in brackets, you can simply use ?expression, but since it does not
117118
// have any containment, no operators can be used afterwards when used
118119
// without brackets.
119-
// * [^?expression] - This will perform a distinct filter operation on an array. This behaves
120+
// - [^?expression] - This will perform a distinct filter operation on an array. This behaves
120121
// as [?expression] except that it will remove any duplicate values/objects from the
121122
// result set.
122-
// * [/expression], [\expression], [/expression, /expression] - This performs a sort
123+
// - [/expression], [\expression], [/expression, /expression] - This performs a sort
123124
// operation on an array, with sort based on the provide expression. Multiple comma delimited sort
124125
// expressions can be provided for multiple sort orders (first being highest priority). /
125126
// indicates ascending order and \ indicates descending order
126-
// * [=expression] - This performs a map operation on an array, creating a new array
127+
// - [=expression] - This performs a map operation on an array, creating a new array
127128
// with each item being the evaluation of the expression for each item in the source array.
128-
// * [start:end:step] - This performs an array slice/range operation, returning the elements
129+
// - [start:end:step] - This performs an array slice/range operation, returning the elements
129130
// from the optional start index to the optional end index, stepping by the optional step number.
130-
// * [expr,expr] - This a union operator, returning an array of all the property/index values from
131+
// - [expr,expr] - This a union operator, returning an array of all the property/index values from
131132
// the evaluation of the comma delimited expressions.
132-
// * .* or [*] - This returns the values of all the properties of the current object.
133-
// * $ - This is the root object, If a JSONQuery expression does not being with a $,
133+
// - .* or [*] - This returns the values of all the properties of the current object.
134+
// - $ - This is the root object, If a JSONQuery expression does not being with a $,
134135
// it will be auto-inserted at the beginning.
135-
// * @ - This is the current object in filter, sort, and map expressions. This is generally
136+
// - @ - This is the current object in filter, sort, and map expressions. This is generally
136137
// not necessary, names are auto-converted to property references of the current object
137138
// in expressions.
138-
// * ..property - Performs a recursive search for the given property name, returning
139+
// - ..property - Performs a recursive search for the given property name, returning
139140
// an array of all values with such a property name in the current object and any subobjects
140-
// * expr = expr - Performs a comparison (like JS's ==). When comparing to
141+
// - expr = expr - Performs a comparison (like JS's ==). When comparing to
141142
// a string, the comparison string may contain wildcards * (matches any number of
142143
// characters) and ? (matches any single character).
143-
// * expr ~ expr - Performs a string comparison with case insensitivity.
144-
// * ..[?expression] - This will perform a deep search filter operation on all the objects and
144+
// - expr ~ expr - Performs a string comparison with case insensitivity.
145+
// - ..[?expression] - This will perform a deep search filter operation on all the objects and
145146
// subobjects of the current data. Rather than only searching an array, this will search
146147
// property values, arrays, and their children.
147-
// * $1,$2,$3, etc. - These are references to extra parameters passed to the query
148+
// - $1,$2,$3, etc. - These are references to extra parameters passed to the query
148149
// function or the evaluator function.
149-
// * +, -, /, *, &, |, %, (, ), <, >, <=, >=, != - These operators behave just as they do
150+
// - +, -, /, *, &, |, %, (, ), <, >, <=, >=, != - These operators behave just as they do
150151
// in JavaScript.
151152
//
152-
//
153-
//
154153
// | dojox.json.query(queryString,object)
155154
// and
156155
// | dojox.json.query(queryString)(object)

0 commit comments

Comments
 (0)