Commit Graph

  • 69bb3490b3 camelcase conventions Jeremy Ashkenas 2010-02-24 12:10:07 -05:00
  • 39024c35a6 waypoint commit on the big merge Jeremy Ashkenas 2010-02-24 12:03:08 -05:00
  • 2ec05e758b merging ratbeard/closure Jeremy Ashkenas 2010-02-24 11:45:05 -05:00
  • a2aab7c699 merging ratbeard's numerous improvements Jeremy Ashkenas 2010-02-24 11:38:27 -05:00
  • 875633141a merging rlfletchers branch with a safer _.template when the template delimiter includes RegExp characters. Jeremy Ashkenas 2010-02-24 11:03:47 -05:00
  • 3482ec1259 Escape template delimiters before using them in a RegExp Rick Fletcher 2010-02-23 23:47:28 -08:00
  • 38a82591b1 Added failing test for quotes in statements with regex-significant characters in tokens Rick Fletcher 2010-02-23 23:44:25 -08:00
  • 625adb81a3 Added tests for templates with regex-significant characters in their delimiters Rick Fletcher 2010-02-23 23:41:51 -08:00
  • b8fd129130 only initWrapper() once. make wrapper constructor accessable as _._wrapper. Mike Frawley 2010-02-23 18:20:42 -06:00
  • c9b41a4996 modify rakefile build_advanced to strip off my call to _.initWrapper() Mike Frawley 2010-02-23 18:13:46 -06:00
  • f591f68546 make _.initWrapper() that builds the wrapper prototye Mike Frawley 2010-02-23 18:04:47 -06:00
  • 1cf73c5474 Re-arrange baseline setup section. Mike Frawley 2010-02-23 17:34:34 -06:00
  • 59d383c151 Revert "Create #alias method, callable on any object, _ by default." Mike Frawley 2010-02-23 17:26:32 -06:00
  • 164e19c121 use var native_reduceRight etc. variables instead of Native = { reduceRight: ... } Mike Frawley 2010-02-23 17:13:18 -06:00
  • b5449ca89a Add rake task to build with closure advanced optimizations. Mike Frawley 2010-02-23 16:40:50 -06:00
  • 31f0f8c54c make a local variable that points to Array.prototype since the former is not min'd down. Mike Frawley 2010-02-22 15:57:23 -06:00
  • bb250e7205 Much better strategy for calling native Array methods. Mike Frawley 2010-02-22 15:50:01 -06:00
  • b774bf7ca9 delegate to ECMA5 native Array.isArray if available Mike Frawley 2010-02-22 14:37:54 -06:00
  • 5a5e14d7a4 add #times utility method. Mike Frawley 2010-02-17 10:21:59 -06:00
  • 263b1ee92d add #buildLookup method to turn collection in to a fast lookup hash Mike Frawley 2010-02-17 10:12:22 -06:00
  • 1b1943b0ca implement include in terms of detect Mike Frawley 2010-02-17 09:53:36 -06:00
  • 76bbfddd95 our #reduceRight delegates to #reduce after reversing. Mike Frawley 2010-02-17 09:51:38 -06:00
  • 130e860ecf improve #isEmpty implementation. add 2 tests Mike Frawley 2010-02-17 09:48:29 -06:00
  • 386ee8ade9 add reference to underscore.js on docs page, since this is a good place to play around with it in the console Mike Frawley 2010-02-17 09:45:24 -06:00
  • c43de549ba Create #alias method, callable on any object, _ by default. Mike Frawley 2010-02-17 09:41:18 -06:00
  • c4daac089b delegate to native Object.keys in nightlies Mike Frawley 2010-02-17 09:26:34 -06:00
  • 7ec8d12d6c rename underscore methods after the native [] method names, aliases for ruby versions Mike Frawley 2010-02-17 09:16:10 -06:00
  • 59a4f49bfa Make internal var each = _.each Mike Frawley 2010-02-17 09:05:45 -06:00
  • 11e7af06e9 close that iframe document after writing to it Jeremy Ashkenas 2010-02-08 07:12:40 -05:00
  • d01bb56833 adding type tests across iframes for all isType functions Jeremy Ashkenas 2010-02-05 08:22:40 -05:00
  • 5b5ee87c7a Underscore 0.5.8, with collection functions that once again work on NodeLists and HTMLCollections Jeremy Ashkenas 2010-01-28 00:55:41 -05:00
  • 21f37e43a1 adding duck typing section so that it's not unexpected Jeremy Ashkenas 2010-01-27 14:05:27 -05:00
  • 30858c50a8 added suggested speed boost for isNumber Jeremy Ashkenas 2010-01-20 13:50:08 -05:00
  • 52ac3db77c Underscore 0.5.7 is on the books Jeremy Ashkenas 2010-01-20 13:17:28 -05:00
  • 7ec091cc55 safer isArguments function -- make sure we're not dealing with strings or functions Jeremy Ashkenas 2010-01-20 12:45:32 -05:00
  • 4a94246fd1 added obj.calle check to isArguments, to prevent misfiring for typeof String Jed Schmidt 2010-01-20 10:18:45 -07:00
  • 7d9e603be8 Underscore 0.5.6, with custom template delimiters Jeremy Ashkenas 2010-01-18 12:45:04 -05:00
  • 94195e661d Made _.template delimeters customizable noah 2010-01-15 23:25:52 -05:00
  • 4f1a72da51 update docs to mention native 'reduce' -- but it's JS 1.8, not 1.6 Jeremy Ashkenas 2010-01-14 09:39:58 -05:00
  • cda9099a21 Underscore 0.5.5, with a fix for OOP-wrapping in MobileSafari, thanks to terrcin. Jeremy Ashkenas 2010-01-09 19:34:32 -05:00
  • 6866ffb840 adding a test for single quotes in templates Jeremy Ashkenas 2010-01-05 11:28:29 -05:00
  • 0a8a4834b2 Underscore 0.5.4 -- bugfix for single quotes in _.template strings Jeremy Ashkenas 2010-01-05 11:26:14 -05:00
  • fde8b1f63f Underscore 0.5.3 Jeremy Ashkenas 2010-01-04 11:34:26 -05:00
  • 75a31fffc5 adding boolean coercions to the faster isType methods Jeremy Ashkenas 2010-01-04 10:20:46 -05:00
  • abb0f7f194 _.toArray is just _.values for objects Jeremy Ashkenas 2010-01-03 22:05:10 -05:00
  • 6427ac5813 22k now in dev mode Jeremy Ashkenas 2010-01-01 21:36:01 -05:00
  • 385404b685 Underscore 0.5.2 Jeremy Ashkenas 2010-01-01 21:32:44 -05:00
  • 4be6a194cd replacing all isType tests that relied on string comparisons with versions that check for existence of known methods and properties. Less safe, but more than an order of magnitude faster. Jeremy Ashkenas 2010-01-01 19:05:34 -05:00
  • d49196f2e7 pulling Evgeniy Dolzhenko's patch to add _.tap, with tests Jeremy Ashkenas 2009-12-11 09:25:20 -05:00
  • c17879453a utf8 meta tag Jeremy Ashkenas 2009-12-10 14:14:48 -05:00
  • a418153800 quick fix for 0.5.1 for IE -- need to define functions in the right order Jeremy Ashkenas 2009-12-09 14:36:19 -05:00
  • 4042a38dc6 Underscore 0.5.1 Jeremy Ashkenas 2009-12-09 14:22:05 -05:00
  • 5c314d206e adding an isArguments checker and enabling iteration (using each) over JS object hashes that have numeric length properties Jeremy Ashkenas 2009-12-09 13:41:19 -05:00
  • 225d795836 merging in iamnoah's optimizations for the isType family of functions, and other references to core prototoypes Jeremy Ashkenas 2009-12-09 12:44:55 -05:00
  • e863fbf285 Merge branch 'master' of git://github.com/iamnoah/underscore Jeremy Ashkenas 2009-12-09 12:07:24 -05:00
  • 76cccb6a2d added JSLitmus tests for isType functions Noah Sloan 2009-12-09 10:00:48 -06:00
  • 2ba87d6b44 adding test case for previous commit Jeremy Ashkenas 2009-12-09 11:20:09 -05:00
  • 99564138e8 added an extra check in isEqual to test for falsy against truthy values (so as to short circuit before trying to look for properties on null) Jeremy Ashkenas 2009-12-09 11:17:30 -05:00
  • 3eb9c28039 Underscore shouldn't be able to iterate over the letters of a string cross-browser -- indexing into a string isn't supported in IE Jeremy Ashkenas 2009-12-08 17:31:01 -05:00
  • 37930f92e0 doh. messed up isNumber fix Noah Sloan 2009-12-08 16:03:53 -06:00
  • 6554c6d976 have to define isNumber before _.each will work in IE Noah Sloan 2009-12-08 15:57:04 -06:00
  • a5454d6972 cache hasOwnProperty Noah Sloan 2009-12-08 14:24:44 -06:00
  • 38cae13d69 cache wrapper methods Noah Sloan 2009-12-08 14:21:05 -06:00
  • 8c7fcb7781 cache is string and toString to improve performance Noah Sloan 2009-12-08 14:11:28 -06:00
  • 0ed4212ec6 adding pervasive safety checks for using Underscore functions on objects that jsut happen to have 'map', 'reduce', or 'filter' etc. properties that aren't functions. Jeremy Ashkenas 2009-12-08 00:06:34 -05:00
  • 30329c051b dont try to look at the keys of zero-length arrays or arguments objects when calling each() Jeremy Ashkenas 2009-12-07 23:41:55 -05:00
  • 2afcffb30a added guards to _.first and _.rest and tests, they now work as function parameters to _.map Jeremy Ashkenas 2009-12-07 23:36:31 -05:00
  • 21e0cbc229 simplified the bindAll example Jeremy Ashkenas 2009-12-07 00:26:00 -05:00
  • f2670259d1 0.5.0 is out, with variants of grayrest's patches Jeremy Ashkenas 2009-12-07 00:14:07 -05:00
  • 39001bd029 API changes: _.bindAll now takes the context object as the first parameter, instead of the last, and _.functions (_.methods) now takes an explicitreceiver, returning a list of its methods Jeremy Ashkenas 2009-12-06 23:54:41 -05:00
  • 06c74e76f0 added an isRegExp test Jeremy Ashkenas 2009-12-06 23:10:44 -05:00
  • 2875f3145d added a links section to the documentation, with Underscore.lua and collections libraries galore Jeremy Ashkenas 2009-12-06 23:09:36 -05:00
  • 53122d08bd documenting isRegExp Jeremy Ashkenas 2009-12-06 22:50:38 -05:00
  • 66dc6c2ac1 shrunk down all of the 'is' functions into a single generation, added isRegExp, added a regexp equality test to isEqual, after grayrest's patch Jeremy Ashkenas 2009-12-06 22:48:40 -05:00
  • 4bd535e7f1 Underscore 0.4.7 is done Jeremy Ashkenas 2009-12-06 14:13:25 -05:00
  • 7a1f92a8c5 documentation for Underscore 0.4.7, with isDate, isNaN, and isNull Jeremy Ashkenas 2009-12-06 13:43:16 -05:00
  • 86c2ad2b1f maintain a single reference to the Object.prototype Jeremy Ashkenas 2009-12-06 13:20:56 -05:00
  • 689cd97e03 pushed all hasOwnProperty checks into _.keys, speeding _.keys up by about 25%, and using it to simplify other functions: _.each, _.isEmpty, _.functions Jeremy Ashkenas 2009-12-06 13:16:44 -05:00
  • a97836a175 a couple of grayrest's speed improvements for _.isEqual Jeremy Ashkenas 2009-12-06 12:55:43 -05:00
  • 79cb7bb17b stop assigning to arguments object in _.compose Jeremy Ashkenas 2009-12-06 12:35:11 -05:00
  • 8ca9739dfe adding a documentcloud credit to the doc page Jeremy Ashkenas 2009-12-03 21:03:49 -05:00
  • 6b1ad73cd2 commented, underscore is 20K now Jeremy Ashkenas 2009-11-30 23:21:48 -05:00
  • 4b2744a75a 0.4.6 is on the books, with kylichuku's range function Jeremy Ashkenas 2009-11-30 23:20:11 -05:00
  • 64cac959a5 re-generated underscore-min.js to include _.range() function Kirill Ishanov 2009-12-01 02:26:04 +03:00
  • 451d9c5d62 implemented 6 more passing tests for range. Now works like python's range Kirill Ishanov 2009-12-01 02:10:56 +03:00
  • d8cf99ba89 initial implementation of _.range Kirill Ishanov 2009-12-01 00:44:13 +03:00
  • 67f1e8a9c8 merged matehat's toArray patch Jeremy Ashkenas 2009-11-22 00:50:08 -05:00
  • 3c0b7125a7 '_.toArray' now checks whether the iterable object contains a 'toArray' method to delegate to. matehat 2009-11-21 22:02:31 -05:00
  • ae968a6ea0 Underscore 0.4.5, with first/rest, head/tail, and all Array functions guaranteed to work on 'arguments' objects. Many method implementations reworked to use _.rest() Jeremy Ashkenas 2009-11-19 09:37:56 -05:00
  • b5f111e8d4 Merge branch 'master' of git://github.com/lukesutton/underscore Jeremy Ashkenas 2009-11-19 08:35:10 -05:00
  • f8e939d30a fixing template test validation for IE Jeremy Ashkenas 2009-11-18 21:54:50 -05:00
  • 4ed79d5f77 Correct the test for functions() to account for the new functions and aliases. Luke Sutton 2009-11-19 11:35:21 +10:30
  • 8cac2d5bd7 Add init(), tail() and reverse() Array functions. Alias first() to head(); Luke Sutton 2009-11-19 11:07:14 +10:30
  • 86e6dd58c2 code-ify stopIteration in the docs Jeremy Ashkenas 2009-11-18 16:11:35 -05:00
  • c9e46262ab Underscore 0.4.4, with isNumber, isString, and isEqual(NaN, NaN) Jeremy Ashkenas 2009-11-18 16:09:55 -05:00
  • b932867dec regression fix: implied global 'i' in _.indexOf() -- thanks to Sveinung Rosaker. Jeremy Ashkenas 2009-11-14 08:31:42 -05:00
  • 80939448a7 fixing broken _.breakLoop test -- implementation was fine, test was out of date. Jeremy Ashkenas 2009-11-12 21:31:03 -05:00
  • b5e1101610 0.4.3, with fixed export for CommonJS and StopIteration support Jeremy Ashkenas 2009-11-09 22:17:47 -05:00
  • 111f1cbc0d Make the exports system include the wrapper function in node.js Tim Caswell 2009-11-09 16:46:34 -06:00
  • f6e67a5bf2 version 0.4.2 -- quick patch to rename get() to value() for clarity, and adding jQuery comparisons in the speed tests Jeremy Ashkenas 2009-11-09 08:28:32 -05:00