changing include to use === instead of ==

This commit is contained in:
Jeremy Ashkenas
2009-10-27 15:01:34 -04:00
parent 90e34e1a74
commit 5ef845a663
2 changed files with 7 additions and 5 deletions

2
underscore-min.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -8,6 +8,8 @@
window._ = { window._ = {
VERSION : '0.1.0', VERSION : '0.1.0',
/*------------------------ Collection Functions: ---------------------------*/
// The cornerstone, an each implementation. // The cornerstone, an each implementation.
// Handles objects implementing forEach, each, arrays, and raw objects. // Handles objects implementing forEach, each, arrays, and raw objects.
@@ -200,7 +202,7 @@ window._ = {
return _.toArray(obj).length; return _.toArray(obj).length;
}, },
//------------- The following methods only apply to arrays. ----------------- /*-------------------------- Array Functions: ------------------------------*/
// Get the first element of an array. // Get the first element of an array.
first : function(array) { first : function(array) {
@@ -272,7 +274,7 @@ window._ = {
return -1; return -1;
}, },
/* -------------- The following methods apply to functions -----------------*/ /* ----------------------- Function Functions: -----------------------------*/
// Create a function bound to a given object (assigning 'this', and arguments, // Create a function bound to a given object (assigning 'this', and arguments,
// optionally). Binding with arguments is also known as 'curry'. // optionally). Binding with arguments is also known as 'curry'.
@@ -318,7 +320,7 @@ window._ = {
}; };
}, },
/* ---------------- The following methods apply to objects ---------------- */ /* ------------------------- Object Functions: ---------------------------- */
// Retrieve the names of an object's properties. // Retrieve the names of an object's properties.
keys : function(obj) { keys : function(obj) {
@@ -383,7 +385,7 @@ window._ = {
return typeof obj == 'undefined'; return typeof obj == 'undefined';
}, },
/* -------------- The following methods are utility methods --------------- */ /* -------------------------- Utility Functions: -------------------------- */
// Generate a unique integer id (unique within the entire client session). // Generate a unique integer id (unique within the entire client session).
// Useful for temporary DOM ids. // Useful for temporary DOM ids.