Skip to content

Commit ec7c57c

Browse files
timgrahampedrofurtado
authored andcommitted
Fix typos in comments (select2#5336)
1 parent 9e613ff commit ec7c57c

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/js/select2/dropdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ define([
3030
};
3131

3232
Dropdown.prototype.position = function ($dropdown, $container) {
33-
// Should be implmented in subclasses
33+
// Should be implemented in subclasses
3434
};
3535

3636
Dropdown.prototype.destroy = function () {

src/js/select2/dropdown/attachBody.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,10 @@ define([
156156
top: container.bottom
157157
};
158158

159-
// Determine what the parent element is to use for calciulating the offset
159+
// Determine what the parent element is to use for calculating the offset
160160
var $offsetParent = this.$dropdownParent;
161161

162-
// For statically positoned elements, we need to get the element
162+
// For statically positioned elements, we need to get the element
163163
// that is determining the offset
164164
if ($offsetParent.css('position') === 'static') {
165165
$offsetParent = $offsetParent.offsetParent();

src/js/select2/results.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ define([
339339

340340
var currentIndex = $options.index($highlighted);
341341

342-
// If we are already at te top, don't move further
342+
// If we are already at the top, don't move further
343343
// If no options, currentIndex will be -1
344344
if (currentIndex <= 0) {
345345
return;

0 commit comments

Comments
 (0)