Browse Source

Fix typos in comments (#5336)

Tim Graham 6 years ago
parent
commit
ec7c57c288

+ 1 - 1
src/js/select2/dropdown.js

@@ -30,7 +30,7 @@ define([
   };
   };
 
 
   Dropdown.prototype.position = function ($dropdown, $container) {
   Dropdown.prototype.position = function ($dropdown, $container) {
-    // Should be implmented in subclasses
+    // Should be implemented in subclasses
   };
   };
 
 
   Dropdown.prototype.destroy = function () {
   Dropdown.prototype.destroy = function () {

+ 2 - 2
src/js/select2/dropdown/attachBody.js

@@ -156,10 +156,10 @@ define([
       top: container.bottom
       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;
     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
     // that is determining the offset
     if ($offsetParent.css('position') === 'static') {
     if ($offsetParent.css('position') === 'static') {
       $offsetParent = $offsetParent.offsetParent();
       $offsetParent = $offsetParent.offsetParent();

+ 1 - 1
src/js/select2/results.js

@@ -339,7 +339,7 @@ define([
 
 
       var currentIndex = $options.index($highlighted);
       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 no options, currentIndex will be -1
       if (currentIndex <= 0) {
       if (currentIndex <= 0) {
         return;
         return;