From 61973c4e52f8466405106d4f67a48b625f6e3a5d Mon Sep 17 00:00:00 2001 From: Eric Dahl Date: Sun, 26 Jan 2014 13:43:21 -0600 Subject: [PATCH] Documentation: Fix typos --- index.html | 14 +++++++------- select-2.1.html | 8 ++++---- select2-1.0.html | 6 +++--- select2-latest.html | 12 ++++++------ 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/index.html b/index.html index f0b83988..2d4c59df 100644 --- a/index.html +++ b/index.html @@ -390,7 +390,7 @@ $("#e10_4").select2({

Multi-Value Select Boxes

-

Select2 also supports multi-value select boxes. The select below is declared with the multiple attribute. Select2 automatially picks up on this:

+

Select2 also supports multi-value select boxes. The select below is declared with the multiple attribute. Select2 automatically picks up on this:

@@ -462,7 +462,7 @@ $("#e2_2").select2({

Example Code


             

- You can set data- attributes to <option> (or <optgroup>) and use them inside temptlating functions: + You can set data- attributes to <option> (or <optgroup>) and use them inside templating functions:

 <select>
@@ -665,7 +665,7 @@ $("#e11")
     .on("select2-selecting", function(e) { log ("selecting val="+ e.val+" choice="+ JSON.stringify(e.choice));})
     .on("select2-removing", function(e) { log ("removing val="+ e.val+" choice="+ JSON.stringify(e.choice));})
     .on("select2-removed", function(e) { log ("removed val="+ e.val+" choice="+ JSON.stringify(e.choice));})
-    .on("select2-loaded", function(e) { log ("loaded (data property omitted for brevitiy)");})
+    .on("select2-loaded", function(e) { log ("loaded (data property omitted for brevity)");})
     .on("select2-focus", function(e) { log ("focus");})
     .on("select2-blur", function(e) { log ("blur");});
 $("#e11_2")
@@ -677,7 +677,7 @@ $("#e11_2")
     .on("select2-selecting", function(e) { log ("selecting val="+ e.val+" choice="+ JSON.stringify(e.choice));})
     .on("select2-removing", function(e) { log ("removing val="+ e.val+" choice="+ JSON.stringify(e.choice));})
     .on("select2-removed", function(e) { log ("removed val="+ e.val+" choice="+ JSON.stringify(e.choice));})
-    .on("select2-loaded", function(e) { log ("loaded (data property omitted for brevitiy)");})
+    .on("select2-loaded", function(e) { log ("loaded (data property omitted for brevity)");})
     .on("select2-focus", function(e) { log ("focus");})
     .on("select2-blur", function(e) { log ("blur");});
 });
@@ -1107,7 +1107,7 @@ $(document).ready(function () {
                     
element
Uses javascript to calculate the width of the source element.
copy
Copies the value of the width style attribute set on the source element.
resolve
First attempts to copy than falls back on element.
-
other values
if the width attribute contains a function it will be avaluated, otherwise the value is used verbatim.
+
other values
if the width attribute contains a function it will be evaluated, otherwise the value is used verbatim.
minimumInputLengthintNumber of characters necessary to start a search. @@ -1416,7 +1416,7 @@ $("#select").select2({ The default tokenizer will only be used if the tokenSeparators and createSearchChoice options are specified. The default tokenizer will split the string using any separator in tokenSeparators - and will create and select choice objects using createSearhChoice option. It will also + and will create and select choice objects using createSearchChoice option. It will also ignore duplicates, silently swallowing those tokens. tokenSeparatorsarray @@ -1790,7 +1790,7 @@ $("#select").select2({

select2-focus

-

Fired when the control is focussed. +

Fired when the control is focused.

diff --git a/select-2.1.html b/select-2.1.html index 8016b4a4..5523560e 100755 --- a/select-2.1.html +++ b/select-2.1.html @@ -270,7 +270,7 @@ version: 2.1

Multi-Value Select Boxes

-

Select2 also supports multi-value select boxes. The select below is declared with the multiple attribute. Select2 automatially picks up on this:

+

Select2 also supports multi-value select boxes. The select below is declared with the multiple attribute. Select2 automatically picks up on this:


@@ -762,7 +762,7 @@ version: 2.1 textstringtext of the option being matched <returns>booleantrue if search term matches the option text, or false otherwise - The default implementation is case insensitive and matches anywhere in ther term: + The default implementation is case insensitive and matches anywhere in the term: function(term, text) { return text.toUpperCase().indexOf(term.toUpperCase())>0; } formatSelectionfunction @@ -892,7 +892,7 @@ $("#tags").select2({ termstringSearch term pageint1-based page number tracked by Select2 for use with infinite scrolling of results contextobjectSee options.context parameter to the query function above. - <returns>objectObject containing url paramters + <returns>objectObject containing url parameters resultsfunction @@ -953,7 +953,7 @@ $("#tags").select2({ -Example:
alert("Selected value is: "+$("#e8").select2("val")); $("#e8").select2("val", {id:"CA", text:"Califoria"});
+Example:
alert("Selected value is: "+$("#e8").select2("val")); $("#e8").select2("val", {id:"CA", text:"California"});

destroy

diff --git a/select2-1.0.html b/select2-1.0.html index b9a72ef4..091e0046 100755 --- a/select2-1.0.html +++ b/select2-1.0.html @@ -415,7 +415,7 @@ $("#e8_set").click( ParameterTypeDescription termstringSearch term varsobjectThe vars object from the previous search's result - <returns>objectObject containing url paramters + <returns>objectObject containing url parameters resultsfunction @@ -442,7 +442,7 @@ $("#e8_set").click( value (optional)objectResult object for the new selection, or the id attribute of a loaded result object - Example:
alert("Selected value is: "+$("#e8").select2("val")); $("#e8").select2("val", {id:"CA", text:"Califoria"});
+ Example:
alert("Selected value is: "+$("#e8").select2("val")); $("#e8").select2("val", {id:"CA", text:"California"});

Events

@@ -459,7 +459,7 @@ $("#e8_set").click(

cancelled

-

Signalled when the user cancells the selection of a result. For example, when ESC is pressed after the dropdown has been opened

+

Signalled when the user cancels the selection of a result. For example, when ESC is pressed after the dropdown has been opened

selected

diff --git a/select2-latest.html b/select2-latest.html index 54ff23bf..2ef7223b 100644 --- a/select2-latest.html +++ b/select2-latest.html @@ -403,7 +403,7 @@ $("#e10_4").select2({

Multi-Value Select Boxes

-

Select2 also supports multi-value select boxes. The select below is declared with the multiple attribute. Select2 automatially picks up on this:

+

Select2 also supports multi-value select boxes. The select below is declared with the multiple attribute. Select2 automatically picks up on this:

@@ -475,7 +475,7 @@ $("#e2_2").select2({

Example Code


             

- You can set data- attributes to <option> (or <optgroup>) and use them inside temptlating functions: + You can set data- attributes to <option> (or <optgroup>) and use them inside templating functions:

 <select>
@@ -672,7 +672,7 @@ $("#e11")
     .on("select2-selecting", function(e) { log ("selecting val="+ e.val+" choice="+ JSON.stringify(e.choice));})
     .on("select2-removing", function(e) { log ("removing val="+ e.val+" choice="+ JSON.stringify(e.choice));})
     .on("select2-removed", function(e) { log ("removed val="+ e.val+" choice="+ JSON.stringify(e.choice));})
-    .on("select2-loaded", function(e) { log ("loaded (data property omitted for brevitiy)");})
+    .on("select2-loaded", function(e) { log ("loaded (data property omitted for brevity)");})
     .on("select2-focus", function(e) { log ("focus");})
     .on("select2-blur", function(e) { log ("blur");});
 $("#e11_2")
@@ -684,7 +684,7 @@ $("#e11_2")
     .on("select2-selecting", function(e) { log ("selecting val="+ e.val+" choice="+ JSON.stringify(e.choice));})
     .on("select2-removing", function(e) { log ("removing val="+ e.val+" choice="+ JSON.stringify(e.choice));})
     .on("select2-removed", function(e) { log ("removed val="+ e.val+" choice="+ JSON.stringify(e.choice));})
-    .on("select2-loaded", function(e) { log ("loaded (data property omitted for brevitiy)");})
+    .on("select2-loaded", function(e) { log ("loaded (data property omitted for brevity)");})
     .on("select2-focus", function(e) { log ("focus");})
     .on("select2-blur", function(e) { log ("blur");});
 });
@@ -1142,7 +1142,7 @@ $(document).ready(function () {
                     
element
Uses javascript to calculate the width of the source element.
copy
Copies the value of the width style attribute set on the source element.
resolve
First attempts to copy than falls back on element.
-
other values
if the width attribute contains a function it will be avaluated, otherwise the value is used verbatim.
+
other values
if the width attribute contains a function it will be evaluated, otherwise the value is used verbatim.
minimumInputLengthintNumber of characters necessary to start a search. @@ -1471,7 +1471,7 @@ $("#select").select2({ The default tokenizer will only be used if the tokenSeparators and createSearchChoice options are specified. The default tokenizer will split the string using any separator in tokenSeparators - and will create and select choice objects using createSearhChoice option. It will also + and will create and select choice objects using createSearchChoice option. It will also ignore duplicates, silently swallowing those tokens. tokenSeparatorsarray