Fix typos in comments (#5336)
This commit is contained in:
parent
9e613ff22e
commit
ec7c57c288
2
src/js/select2/dropdown.js
vendored
2
src/js/select2/dropdown.js
vendored
@ -30,7 +30,7 @@ define([
|
||||
};
|
||||
|
||||
Dropdown.prototype.position = function ($dropdown, $container) {
|
||||
// Should be implmented in subclasses
|
||||
// Should be implemented in subclasses
|
||||
};
|
||||
|
||||
Dropdown.prototype.destroy = function () {
|
||||
|
4
src/js/select2/dropdown/attachBody.js
vendored
4
src/js/select2/dropdown/attachBody.js
vendored
@ -156,10 +156,10 @@ define([
|
||||
top: container.bottom
|
||||
};
|
||||
|
||||
// Determine what the parent element is to use for calciulating the offset
|
||||
// Determine what the parent element is to use for calculating the offset
|
||||
var $offsetParent = this.$dropdownParent;
|
||||
|
||||
// For statically positoned elements, we need to get the element
|
||||
// For statically positioned elements, we need to get the element
|
||||
// that is determining the offset
|
||||
if ($offsetParent.css('position') === 'static') {
|
||||
$offsetParent = $offsetParent.offsetParent();
|
||||
|
2
src/js/select2/results.js
vendored
2
src/js/select2/results.js
vendored
@ -339,7 +339,7 @@ define([
|
||||
|
||||
var currentIndex = $options.index($highlighted);
|
||||
|
||||
// If we are already at te top, don't move further
|
||||
// If we are already at the top, don't move further
|
||||
// If no options, currentIndex will be -1
|
||||
if (currentIndex <= 0) {
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user