Skip to content

Commit 51ebd65

Browse files
authored
Merge pull request selectize#1265 from siegy22/patch-2
Fix broken documentation
2 parents c4e25ec + fe19666 commit 51ebd65

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

docs/usage.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,10 @@ $(function() {
3737
<td valign="top">
3838
An array of the initial options available to select; array
3939
of objects.
40-
4140
By default this is populated from the original input
4241
element. If your element is a &lt;select&gt; with
4342
&lt;option&gt;s specified this property gets populated
4443
automatically.
45-
4644
Setting this property is convenient if you have your data as
4745
an array and want to automatically generate the
4846
&lt;option&gt;s.
@@ -197,19 +195,15 @@ $(function() {
197195
<td valign="top"><code>boolean</code></td>
198196
<td valign="top"><code>true</code></td>
199197
</tr>
200-
201-
202198
<tr>
203199
<th valign="top" colspan="4" align="left"><a href="#data_searching" name="data_searching">Data / Searching</a></th>
204200
</tr>
205-
206201
<tr>
207202
<th valign="top" align="left">Setting</th>
208203
<th valign="top" align="left">Description</th>
209204
<th valign="top" align="left">Type</th>
210205
<th valign="top" align="left">Default</th>
211206
</tr>
212-
213207
<tr>
214208
<td valign="top"><code>options</code></td>
215209
<td valign="top">See above</td>
@@ -274,9 +268,7 @@ $(function() {
274268
<td valign="top"><code>sortField</code></td>
275269
<td valign="top">
276270
<p>A single field or an array of fields to sort by. Each item in the array should be an object containing at least a <code>field</code> property. Optionally, <code>direction</code> can be set to <code>'asc'</code> or <code>'desc'</code>. The order of the array defines the sort precedence.</p>
277-
278271
<p>Unless present, a special `$score` field will be automatically added to the beginning of the sort list. This will make results sorted primarily by match quality (descending).</p>
279-
280272
<p>You can override the `$score` function. For more information, see the <a href="https://github.com/brianreavis/sifter.js#sifterjs">sifter documentation</a>.</p>
281273
</td>
282274
<td valign="top"><code>string|array</code></td>
@@ -420,7 +412,6 @@ $(function() {
420412
Custom rendering functions. Each function should accept two
421413
arguments: <code>data</code> and <code>escape</code> and return HTML (string
422414
or DOM element) with a single root element.
423-
424415
The <code>escape</code> argument is a function that takes a string and
425416
escapes all special HTML characters.
426417
This is very important to use to prevent XSS vulnerabilities.

0 commit comments

Comments
 (0)