Commit Graph

  • 3b916a2cf7 Adding a note about the _.each change. Jeremy Ashkenas 2010-12-02 21:23:04 -05:00
  • c714175cf1 Underscore.js 1.1.3 Jeremy Ashkenas 2010-12-01 12:49:45 -05:00
  • 2d06e1d526 Issue #70 -- implementing each, find, all, any, etc. without the use of a try/catch/throw. Minor speedup + avoids destroying the stack trace. Jeremy Ashkenas 2010-12-01 11:08:34 -05:00
  • 6b8bb0cacd Better Underscore isType checking, in the presence of Internet Explorer host objects, which are a bit touchy. Jeremy Ashkenas 2010-12-01 10:25:55 -05:00
  • 00237103fc removing an errant a. Jeremy Ashkenas 2010-12-01 09:49:45 -05:00
  • c86a2fe3a8 Safer CommonJS detection... module.exports must be defined. Jeremy Ashkenas 2010-12-01 09:44:11 -05:00
  • 2badecf038 Tweaking README ... linking to contributors. Jeremy Ashkenas 2010-11-30 12:02:42 -05:00
  • 71439c35ac Merging in a patch for _ = require('underscore') Jeremy Ashkenas 2010-11-30 11:59:45 -05:00
  • a3106a99a6 Merge branch 'master' of https://github.com/josh/underscore Jeremy Ashkenas 2010-11-30 11:54:01 -05:00
  • 9e3e067f50 Initial draft of _.throttle and _.debounce Jeremy Ashkenas 2010-11-30 11:41:48 -05:00
  • 538fea377e Export _ object as the entire module Joshua Peek 2010-11-30 10:09:50 -06:00
  • 6763b06192 Fix spelling: occurence -> occurrence Jason Davies 2010-11-11 23:25:31 +00:00
  • e0a3d696be Adding help info to the homepage. Jeremy Ashkenas 2010-11-11 12:30:21 -05:00
  • 47eb154ccf Preserve backslashes in _.template() Jason Davies 2010-11-09 22:59:03 +00:00
  • 44d09ae1c6 Adding header + version number to -min.js Jeremy Ashkenas 2010-11-07 19:00:25 -05:00
  • 13993f466a Added index file for Node.JS summatix 2010-11-07 10:28:14 +10:00
  • da3edddef9 Merging in Issue #54 Jeremy Ashkenas 2010-11-01 08:44:31 -04:00
  • a08c3dbd6b Merge branch 'fix_reduceRight_initial_value' of http://github.com/mcmire/underscore Jeremy Ashkenas 2010-11-01 08:42:19 -04:00
  • 51e327f8e5 Tweaks to Issue #53 Jeremy Ashkenas 2010-11-01 08:40:41 -04:00
  • 974ae99e87 Merge branch 'fix_reduce_initial_value' of http://github.com/mcmire/underscore Jeremy Ashkenas 2010-11-01 08:30:53 -04:00
  • c595974771 Merge branch 'gh-pages' of http://github.com/bkudria/underscore Jeremy Ashkenas 2010-11-01 08:28:21 -04:00
  • f729769d85 Fix reduceRight() so that if you don't pass in an initial value, the last item in the collection is used Elliot Winkler 2010-10-31 19:00:21 -06:00
  • c21e7b24c6 Fix reduce() so that if you don't pass in an initial value, the first item in the collection is used Elliot Winkler 2010-10-31 18:51:30 -06:00
  • 339ae67c01 Fix (grammar) typo. Benjamin Kudria 2010-10-29 14:56:25 -07:00
  • 31efd854f8 removing now unused propertyIsEnumerable reference. Jeremy Ashkenas 2010-10-18 20:45:18 -04:00
  • 8fe19f2023 Underscore 1.1.2 Jeremy Ashkenas 2010-10-15 17:21:41 -04:00
  • 8aeb2832eb Merge branch 'master' of http://github.com/ryantenney/underscore Jeremy Ashkenas 2010-10-15 17:16:26 -04:00
  • 74d282ccc8 fixing mistakenly-aliased contains ... should refer to include. Jeremy Ashkenas 2010-10-15 17:15:26 -04:00
  • c994dec4c0 adding alias 'unique' to point to 'uniq' Ryan W Tenney 2010-10-10 21:38:46 -04:00
  • b07c802766 tweaking documentation, license mention Jeremy Ashkenas 2010-10-07 10:49:10 -04:00
  • 5b4b308c91 Fixing template settings Jeremy Ashkenas 2010-10-07 10:44:49 -04:00
  • 0fb9a95182 Merging in Ryan Tenney's 'improuvements' Jeremy Ashkenas 2010-10-06 10:55:19 -04:00
  • 18e85b813f slice(0) is interchangable with slice() (in method clone) Ryan W Tenney 2010-10-05 22:47:55 -04:00
  • 4d901fbc3c Adding minified version. Ryan W Tenney 2010-10-05 22:44:07 -04:00
  • 1c6e01173a "Cleaned up"? _.range (or maybe not) Ryan W Tenney 2010-10-05 22:36:15 -04:00
  • 81ce3ee0bd Updated templateSettings regexes in tests, replacing the . with [\s\S] Ryan W Tenney 2010-10-05 22:34:24 -04:00
  • 2de76e065e Escaped lts, gts and amps in the test case descriptions. Ryan W Tenney 2010-10-05 22:33:16 -04:00
  • 2dc203332b Changed reduceRight to avoid unnecessarily cloning an array. toArray returns the first argument unmodified if it passes isArray. So if obj passes isArray, call slice on it directly, otherwise use toArray. Ryan W Tenney 2010-10-05 21:22:37 -04:00
  • 2aec074aca Define aliases inline. Ryan W Tenney 2010-10-05 21:10:14 -04:00
  • 644c5aa2ce Expose wrapper.prototype as _.prototype Ryan W Tenney 2010-10-05 20:32:57 -04:00
  • 4484002f7e escapeRegExp is no longer used. Ryan W Tenney 2010-10-05 20:30:57 -04:00
  • cd7c9ee964 Simplify _.clone a little bit. Ryan W Tenney 2010-10-05 20:28:23 -04:00
  • faa672ecd9 Underscore 1.1.1 Jeremy Ashkenas 2010-10-05 17:52:36 -04:00
  • a80550ccd2 Tweaks to the Annotated Underscore. Jeremy Ashkenas 2010-10-05 17:41:11 -04:00
  • 348147d8fb better default multiline-aware templates Jeremy Ashkenas 2010-10-05 17:10:44 -04:00
  • 5984be70c1 adding m flag to default templateSettings regexes. Jeremy Ashkenas 2010-10-05 17:05:03 -04:00
  • 7b25bbef4f Merge branch 'improuvements' of http://github.com/ryantenney/underscore Jeremy Ashkenas 2010-10-05 16:57:56 -04:00
  • 17e21da715 adding a doc task Jeremy Ashkenas 2010-10-05 16:57:39 -04:00
  • 3f49d1df30 Tweaking Underscore for docco-mentation. Jeremy Ashkenas 2010-10-05 16:44:56 -04:00
  • 79600d6e9c Use slice.call internally when working with arguments instead of _.toArray or _.rest Ryan W Tenney 2010-10-03 16:21:32 -04:00
  • 3ce6f9a93b Merge branch 'ultra-mega-important-fix' of http://github.com/maw/underscore Jeremy Ashkenas 2010-09-28 09:55:02 -04:00
  • 3505f79566 Replaced .split("'").join("\\'") with .replace(/'/g, "\\'"). http://jsperf.com/split-join-vs-replace Ryan W Tenney 2010-09-27 21:55:49 -04:00
  • fbd682d9ec Fixing Issue #35. newlines in evaluated code. Jeremy Ashkenas 2010-09-27 17:35:43 -04:00
  • 902f1192e0 fixing test that tried to load nonexistent images in a template. Jeremy Ashkenas 2010-09-27 15:45:08 -04:00
  • 4c35fc80dc Cleaning up testcase's variable names for readability. Samuel Clay 2010-09-23 12:37:42 -04:00
  • 2068f0819d Fixing _.template() bug where using 'p' as a variable name would override the variable by the same name in _.template(), causing an error. See test case utilities.namespaceCollisionTemplate() for example of broken case. Samuel Clay 2010-09-23 12:35:25 -04:00
  • 83c7a006cb fix tyop Michael Wolf 2010-09-09 18:19:47 -05:00
  • cd93790282 Adding Ryan to the contributor list. Jeremy Ashkenas 2010-09-03 08:41:58 -04:00
  • 7df67bcc4d Revert change of new Array(len) to []. Ryan W Tenney 2010-09-01 16:18:22 -04:00
  • 19acc63374 Improuvements: removed calls to String(…) (speed), construction of arrays like new Array(len) (standards), replaced arr.push(val) with arr[arr.length] = val (speed). Ryan W Tenney 2010-08-31 17:02:32 -04:00
  • 116ff91bec Guarantee boolean return value from _.isArguments Ryan W Tenney 2010-08-31 14:53:12 -04:00
  • 3588d11adc Fixing broken link, adding explanation of _.map's iterator's arguments, and adding extra examples to _.map and _.each. Samuel Clay 2010-08-31 12:26:23 -04:00
  • 7a4ddca64d Revert "slight speedup to _.template" Jeremy Ashkenas 2010-08-26 02:01:24 -04:00
  • 7973d7263c slight speedup to _.template Jeremy Ashkenas 2010-08-26 01:02:09 -04:00
  • fc90d57e36 Underscore.js 1.1.0 Jeremy Ashkenas 2010-08-18 09:26:36 -04:00
  • b2b5a5390b merging a variant of svieira's fix for preserving whitespace within templates. Jeremy Ashkenas 2010-07-20 13:37:27 -04:00
  • ef396a9e13 Aliasing _.contains to _.include Jeremy Ashkenas 2010-07-15 10:18:11 -04:00
  • 9827f87611 (breaking change) moving _.reduce's method signature to that of ECMA5. _.reduce(obj, iterator, memo). Updated tests and docs. Jeremy Ashkenas 2010-07-15 09:50:55 -04:00
  • e81a2ec516 Allow _.template functions to be called with no arguments. Nick Stenning 2010-07-14 11:09:05 +01:00
  • 868c5c8d85 adding melmacian's Underscore.strings to the Links section of the docs Jeremy Ashkenas 2010-07-05 15:35:11 -04:00
  • 1a67c8d3a7 adding Andri's link to the changelog Jeremy Ashkenas 2010-06-22 12:49:59 -04:00
  • 29e2c832bc Underscore 1.0.4, with _.memoize Jeremy Ashkenas 2010-06-22 09:21:03 -04:00
  • d62906672b adding a main stanza to package.json for npm installation. Jeremy Ashkenas 2010-06-14 16:13:22 -04:00
  • bce016fc72 Underscore 1.0.3 Jeremy Ashkenas 2010-06-14 15:59:24 -04:00
  • 0e8ca3cb97 NaN is never equal to NaN. Fixed in underscore.js and underscore-min.js, updated tests in test/objects.js Ryan W Tenney 2010-06-12 17:10:48 -04:00
  • 79f65b440a Even though it's not really part of the API, making _.isEmpty work with Strings cross-browser. Jeremy Ashkenas 2010-04-06 13:01:45 -04:00
  • f0427da9cf Fixed documentation typo. Renamed _.isFuction to _.isString. AJ ONeal 2010-04-04 13:27:02 -07:00
  • c8858f4c8f Underscore 1.0.2, with a fixed _.isArguments for Opera Jeremy Ashkenas 2010-03-23 11:06:11 -04:00
  • a6578068d2 Underscore 1.0.1 -- bugfix release for _.isEqual Jeremy Ashkenas 2010-03-19 10:07:21 -04:00
  • 1d787815af Underscore 1.0 Jeremy Ashkenas 2010-03-18 11:41:02 -04:00
  • 78245c206f adding a version number to package.json -- the format has changed Jeremy Ashkenas 2010-03-14 10:11:42 -07:00
  • d69c5ae83b merging ratbeard's patch for allowing multiple arguments to be passed to extend, with docs Jeremy Ashkenas 2010-03-05 15:29:32 -05:00
  • 4085b68be4 enhance #extend to allow taking multiple source objects. Mike Frawley 2010-01-24 11:53:30 -06:00
  • 8c6694c242 comment grammar Jeremy Ashkenas 2010-03-05 15:24:53 -05:00
  • 9903905175 merging mrjjwright's isBoolean, with tests, docs, and credit Jeremy Ashkenas 2010-02-27 00:03:36 -05:00
  • bd271e4794 added _.isBoolean function John Wright 2010-02-26 21:46:58 -07:00
  • d1ccc1e841 remove unused index variable in forEach Mike Frawley 2010-02-26 08:47:36 -06:00
  • c519889a45 Changelog bump. Jeremy Ashkenas 2010-02-24 15:16:20 -05:00
  • b8a633a5fd Underscore 0.6 is on the books. Think of it as a pre-release of 1.0 Jeremy Ashkenas 2010-02-24 15:10:40 -05:00
  • 71b6e4f555 A whole slew of IE fixes and safety guards. Jeremy Ashkenas 2010-02-24 15:01:51 -05:00
  • 8d632ada0b added documentation for _.mixin Jeremy Ashkenas 2010-02-24 14:04:33 -05:00
  • 513f878482 it's now 2010, and adding a list of contributors (everyone who's ever gotten a patch in) Jeremy Ashkenas 2010-02-24 13:58:16 -05:00
  • 85d8f90bca move the OOP-setup bits down into that section for clarity. JavaScript allows this it's pre-declaration pass. Jeremy Ashkenas 2010-02-24 13:49:57 -05:00
  • d855def438 adding an _.mixin utility function that allows you to add functions to Underscore (also used internally) Jeremy Ashkenas 2010-02-24 13:44:46 -05:00
  • c23b2ce717 added documentation for _.times Jeremy Ashkenas 2010-02-24 13:09:08 -05:00
  • 65d2c30312 don't use root as the default 'this' for a bound function, use an empty object instead. Jeremy Ashkenas 2010-02-24 12:57:26 -05:00
  • d7acbca2ce reverted _.buildLookup, restoring _.without to it's previous implementation, adding a test for object identity Jeremy Ashkenas 2010-02-24 12:53:35 -05:00
  • 412d2e4486 avoiding isFunction in _.include Jeremy Ashkenas 2010-02-24 12:47:40 -05:00
  • 7824d63ce8 make the new faster isEmpty a little safer too Jeremy Ashkenas 2010-02-24 12:43:57 -05:00
  • 2c8fbe7875 remove the advanced_optimizations concessions and the advanced_optimizations rake task. Simple will do. Jeremy Ashkenas 2010-02-24 12:16:45 -05:00