Skip to content

Commit 0967c67

Browse files
committed
Merge pull request select2#1865 from pborreli/typos
Fixed typos
2 parents bc78b95 + 9725363 commit 0967c67

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

select2.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ You may obtain a copy of the Apache License and the GPL License at:
1414
http://www.gnu.org/licenses/gpl-2.0.html
1515
1616
Unless required by applicable law or agreed to in writing, software distributed under the
17-
Apache License or the GPL Licesnse is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
17+
Apache License or the GPL License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
1818
CONDITIONS OF ANY KIND, either express or implied. See the Apache License and the GPL License for
1919
the specific language governing permissions and limitations under the Apache License and the GPL License.
2020
*/
@@ -393,12 +393,12 @@ the specific language governing permissions and limitations under the Apache Lic
393393
/**
394394
* Produces an ajax-based query function
395395
*
396-
* @param options object containing configuration paramters
396+
* @param options object containing configuration parameters
397397
* @param options.params parameter map for the transport ajax call, can contain such options as cache, jsonpCallback, etc. see $.ajax
398398
* @param options.transport function that will be used to execute the ajax request. must be compatible with parameters supported by $.ajax
399399
* @param options.url url for the data
400400
* @param options.data a function(searchTerm, pageNumber, context) that should return an object containing query string parameters for the above url.
401-
* @param options.dataType request data type: ajax, jsonp, other datatatypes supported by jQuery's $.ajax function or the transport function if specified
401+
* @param options.dataType request data type: ajax, jsonp, other datatypes supported by jQuery's $.ajax function or the transport function if specified
402402
* @param options.quietMillis (optional) milliseconds to wait before making the ajaxRequest, helps debounce the ajax function if invoked too often
403403
* @param options.results a function(remoteData, pageNumber) that converts data returned form the remote request to the format expected by Select2.
404404
* The expected format is an object containing the following keys:
@@ -1071,7 +1071,7 @@ the specific language governing permissions and limitations under the Apache Lic
10711071
// so here we trigger the click event manually
10721072
this.opts.element.click();
10731073

1074-
// ValidationEngine ignorea the change event and listens instead to blur
1074+
// ValidationEngine ignores the change event and listens instead to blur
10751075
// so here we trigger the blur event manually if so desired
10761076
if (this.opts.blurOnChange)
10771077
this.opts.element.blur();
@@ -1288,7 +1288,7 @@ the specific language governing permissions and limitations under the Apache Lic
12881288
this.dropdown.detach().appendTo(this.body());
12891289
}
12901290

1291-
// create the dropdown mask if doesnt already exist
1291+
// create the dropdown mask if doesn't already exist
12921292
mask = $("#select2-drop-mask");
12931293
if (mask.length == 0) {
12941294
mask = $(document.createElement("div"));
@@ -2413,7 +2413,7 @@ the specific language governing permissions and limitations under the Apache Lic
24132413
// TODO validate placeholder is a string if specified
24142414

24152415
if (opts.element.get(0).tagName.toLowerCase() === "select") {
2416-
// install sthe selection initializer
2416+
// install the selection initializer
24172417
opts.initSelection = function (element, callback) {
24182418

24192419
var data = [];
@@ -2932,7 +2932,7 @@ the specific language governing permissions and limitations under the Apache Lic
29322932
});
29332933

29342934
compound.each2(function(i, choice) {
2935-
// hide an optgroup if it doesnt have any selectable children
2935+
// hide an optgroup if it doesn't have any selectable children
29362936
if (!choice.is('.select2-result-selectable')
29372937
&& choice.find(".select2-result-selectable:not(.select2-selected)").length === 0) {
29382938
choice.addClass("select2-selected");
@@ -2943,7 +2943,7 @@ the specific language governing permissions and limitations under the Apache Lic
29432943
self.highlight(0);
29442944
}
29452945

2946-
//If all results are chosen render formatNoMAtches
2946+
//If all results are chosen render formatNoMatches
29472947
if(!this.opts.createSearchChoice && !choices.filter('.select2-result:not(.select2-selected)').length > 0){
29482948
if(!data || data && !data.more && this.results.find(".select2-no-results").length === 0) {
29492949
if (checkFormatter(self.opts.formatNoMatches, "formatNoMatches")) {

0 commit comments

Comments
 (0)