From 6763b0619277943d406d4f7a9a99f80248f2460e Mon Sep 17 00:00:00 2001 From: Jason Davies Date: Thu, 11 Nov 2010 23:25:31 +0000 Subject: [PATCH] Fix spelling: occurence -> occurrence --- docs/underscore.html | 2 +- underscore.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/underscore.html b/docs/underscore.html index ce0b9e38f..76af64f34 100644 --- a/docs/underscore.html +++ b/docs/underscore.html @@ -210,7 +210,7 @@ an index go together.

for (var i = 0; i < length; i++) results[i] = _.pluck(args, "" + i); return results; };

If the browser doesn't supply us with indexOf (I'm looking at you, MSIE), -we need this function. Return the position of the first occurence of an +we need this function. Return the position of the first occurrence of an item in an array, or -1 if the item is not included in the array. Delegates to ECMAScript 5's native indexOf if available.

  _.indexOf = function(array, item) {
     if (nativeIndexOf && array.indexOf === nativeIndexOf) return array.indexOf(item);
diff --git a/underscore.js b/underscore.js
index 7b17fc649..8689aeb42 100644
--- a/underscore.js
+++ b/underscore.js
@@ -338,7 +338,7 @@
   };
 
   // If the browser doesn't supply us with indexOf (I'm looking at you, **MSIE**),
-  // we need this function. Return the position of the first occurence of an
+  // we need this function. Return the position of the first occurrence of an
   // item in an array, or -1 if the item is not included in the array.
   // Delegates to **ECMAScript 5**'s native `indexOf` if available.
   _.indexOf = function(array, item) {