1
0
mirror of synced 2024-11-22 21:16:10 +03:00

Merge pull request #2909 from ericdahl/docs-brackets

Docs: typo cleanup
This commit is contained in:
Kevin Brown 2015-01-10 15:44:32 -05:00
commit 0424d97396
4 changed files with 8 additions and 8 deletions

View File

@ -312,7 +312,7 @@ $("select").select2({
<p> <p>
When working with array and AJAX data in the past, Select2 allowed a When working with array and AJAX data in the past, Select2 allowed a
custom <code>id</code> function or attribute to be set in various places, custom <code>id</code> function or attribute to be set in various places,
ranging from the initializion of Select2 to when the remote data was being ranging from the initialization of Select2 to when the remote data was being
returned. This allowed Select2 to better integrate with existing data returned. This allowed Select2 to better integrate with existing data
sources that did not necessarily use the <code>id</code> attribute to sources that did not necessarily use the <code>id</code> attribute to
indicate the unique identifier for an object. indicate the unique identifier for an object.

View File

@ -622,7 +622,7 @@ $(".js-example-diacritics").select2();
<p> <p>
Select2 supports displaying the messages in different languages, as well Select2 supports displaying the messages in different languages, as well
as provding your own as providing your own
<a href="options.html#language">custom messages</a> <a href="options.html#language">custom messages</a>
that can be displayed. that can be displayed.
</p> </p>

View File

@ -81,7 +81,7 @@ slug: home
</div> </div>
</li> </li>
<li> <li>
Initialize Select2 on the <code>&gt;select&lt;</code> element that you Initialize Select2 on the <code>&lt;select&gt;</code> element that you
want to make awesome. want to make awesome.
<pre class="code"> <pre class="code">

View File

@ -20,7 +20,7 @@ slug: options
<p> <p>
Select2 will automatically apply decorators to any adapters which have not Select2 will automatically apply decorators to any adapters which have not
been manually overriden. The only time you need to decorate adapters is been manually overridden. The only time you need to decorate adapters is
when you are using third-party adapters not provided by Select2, or you when you are using third-party adapters not provided by Select2, or you
are using features not provided in the Select2 core. You can apply a are using features not provided in the Select2 core. You can apply a
decorator to an adapter using the decorator to an adapter using the
@ -570,7 +570,7 @@ ajax: {
</h2> </h2>
<p> <p>
Select2 can place the dropdown directly after the selection cotainer, so Select2 can place the dropdown directly after the selection container, so
it will appear in the same location within the DOM as the rest of Select2. it will appear in the same location within the DOM as the rest of Select2.
</p> </p>
@ -683,7 +683,7 @@ ajax: {
adapters. You can change almost anything involving the way Select2 works adapters. You can change almost anything involving the way Select2 works
to the way Select2 interacts with the page by modifying the core adapters. to the way Select2 interacts with the page by modifying the core adapters.
Most third-party plugins should provide decorators (used to wrap adapters) Most third-party plugins should provide decorators (used to wrap adapters)
and custom adpaters that you can use. and custom adapters that you can use.
</p> </p>
<p> <p>
@ -813,7 +813,7 @@ SelectionAdapter.update = function (data) { };
// what options within the results are selected. // what options within the results are selected.
// //
// @param callback A function that should be called when the current selection // @param callback A function that should be called when the current selection
// has been retrieved. The first paramter to the function should be an array // has been retrieved. The first parameter to the function should be an array
// of data objects. // of data objects.
DataAdapter.current = function (callback) { DataAdapter.current = function (callback) {
callback(currentData); callback(currentData);
@ -867,7 +867,7 @@ DataAdapter.query = function (params, callback) {
The results adapter controls the list of results that the user can select The results adapter controls the list of results that the user can select
from. While the results adapter does not define any additional methods from. While the results adapter does not define any additional methods
that must be implemented, it makes extensive use of the Select2 event that must be implemented, it makes extensive use of the Select2 event
system for cotrolling the display of results and messages. system for controlling the display of results and messages.
</p> </p>
<dl class="dl-horizontal"> <dl class="dl-horizontal">