Jeremy Ashkenas
3512e7fc5c
Fixes #435 -- allows _.max and _.min on arrays of dates without converting them to numbers.
2012-01-24 10:40:20 -05:00
Jeremy Ashkenas
cdf43ea742
Fixes #429 -- don't escape slash escapes in the body of interpolations...
2012-01-23 17:33:48 -05:00
Jeremy Ashkenas
f6a1b97426
Merge branch 'master' of github.com:documentcloud/underscore
2012-01-23 15:48:53 -05:00
Jeremy Ashkenas
99c17c4a0d
reverting an old change -- _.extend should absolutely copy undefined values.
2012-01-23 15:48:35 -05:00
Peter Jihoon Kim
978255b778
added "collect" alias for "map"
2012-01-14 00:57:41 +08:00
Jeremy Ashkenas
69ed6177ab
Fixes #411 . Partially adding _.templateSettings could break template strings containing the words 'null' or 'undefined'.
2012-01-04 16:00:36 -05:00
Jeremy Ashkenas
62c814d9fe
Fixes #408 : _.chain(object) as well as _(object).chain()
2011-12-30 15:07:22 -05:00
fredericksgary
2206092e25
Use _.isFunction so ClojureScript doesn't break underscore
...
Clojurescript adds a call method to strings, so passing a string to
_.invoke produces the wrong behavior.
2011-12-22 14:38:34 -05:00
Bob Remeika
5ca27ffed1
Fixes #409 - Unexpected arguments passed to wrapper function in _.wrap when the first argument of calling the wrapper function is an array
2011-12-20 01:51:51 -08:00
Jeremy Ashkenas
b4a38439ce
Merge pull request #401 from Stuk/template_js_fix
...
Fix escaped chars in Javascript in templates
2011-12-16 10:09:48 -08:00
Jeremy Ashkenas
3c5686f784
Fixes #403
2011-12-16 12:41:20 -05:00
Stuart Knightley
81cb0d3a86
Add failing test for Javascript in templates
...
Uses an escaped character in Javascript embedded in a template. Gets
incorrectly replaced when templating.
2011-12-08 11:33:31 -08:00
Jeremy Ashkenas
813bb57bf0
Underscore.js 1.2.3
2011-12-07 10:12:08 -05:00
Jeremy Ashkenas
770f0876b3
re-adding 649f62
2011-12-07 09:35:07 -05:00
Jeremy Ashkenas
9e41927293
rolling back to the previous implementation of 'each' ... cancels out #385
2011-12-06 17:33:43 -05:00
John-David Dalton
2c5661ebb3
underscore: Avoid regression and cleanup comments. [jddalton]
2011-12-06 01:16:56 -05:00
John-David Dalton
d8d1bd0259
Merge https://github.com/documentcloud/underscore into unittests
2011-12-06 01:04:29 -05:00
John-David Dalton
649f629bb1
underscore: Allow _.reduce and _.reduceRight to have an explicitly undefined value. [jddalton]
2011-12-03 22:24:53 -05:00
John-David Dalton
4a5c2ac818
underscore: Add unit tests and cleanup code for for-in issues. [jddalton]
2011-12-03 03:26:50 -05:00
Jeremy Ashkenas
7653c5fe09
Issue #309 , adding symmetric difference as _.symDifference, and making _.difference accept any number of arguments.
2011-11-23 12:42:22 -05:00
Jeremy Ashkenas
65d5d60bfa
Fixes #372 -- preserve dynamic scope for _.template functions.
2011-11-23 10:40:08 -05:00
Jeremy Ashkenas
2a697e4bf5
merging in #351 , @kitcambridge's continued quest to implement _.isEqual
2011-11-14 15:01:29 -05:00
Jeremy Ashkenas
e4c4d920a9
Merge pull request #363 from jeffasnome/master
...
fixed any() for strings on IE8
2011-11-14 11:29:14 -08:00
Jeremy Ashkenas
a7f14435b1
Merge pull request #365 from Wachunga/master
...
Fix bug with _.last(a, n) where n > a.length and add test
2011-11-14 11:21:38 -08:00
Jeremy Ashkenas
a64cc1d979
Merge pull request #366 from tillberg/master
...
This commit fixes #364
2011-11-14 11:13:27 -08:00
Jeremy Ashkenas
0acab3dcd3
Fixes #369 -- adding extra semicolons to templtes in case you forget.
2011-11-14 14:04:13 -05:00
Dan Tillberg
f04c6bf779
_.after(0, callback) now fires callback immediately
2011-11-10 11:55:21 -05:00
David Hirtle
05c107576b
Fix bug with _.last(a, n) incorrectly handling n > a.length
2011-11-08 01:13:08 -08:00
Jeff McGee
aedab9c7dd
fixed any() for strings on IE8
2011-11-03 18:47:07 -05:00
Jeremy Ashkenas
ba96d168ec
Fixes Issue #350 -- Making _.escape dumber to allow double-escaping of HTML entities.
2011-10-31 12:31:02 -04:00
Kit Cambridge
3d1605f241
_.isEqual: Ensure that an egal comparison is performed for number objects and primitives.
2011-10-26 11:35:49 -06:00
Kit Cambridge
a0b3feca85
_.isEqual: Use [[Class]] checking for consistency and performance.
...
* Objects with different `[[Class]]` names are no longer equivalent.
* String, number, and boolean primitives and their corresponding wrappers (e.g., `"5"` and `new String("5")`) are now equivalent.
* Arrays are now recursively compared by their numeric properties only. All non-numeric properties are ignored.
2011-10-25 22:48:24 -06:00
Jeremy Ashkenas
29f4478a86
Fixing _.throttle() to only execute once if called once. #170 comments.
2011-10-24 16:16:18 -04:00
Jeremy Ashkenas
3c54f79113
fixes #347
2011-10-24 13:19:15 -04:00
Jeremy Ashkenas
b4d9503340
fixes #170 , fixes #266 ... reimplementing throttle in terms of debounce.
2011-10-24 13:13:24 -04:00
Jeremy Ashkenas
cfec39fd4e
Revert "Fixes #170 , #266 ... throttle now starts at the beginning of the call."
...
This reverts commit bceb77e325 .
2011-10-24 12:06:55 -04:00
Jeremy Ashkenas
bceb77e325
Fixes #170 , #266 ... throttle now starts at the beginning of the call.
2011-10-24 12:05:59 -04:00
Jeremy Ashkenas
58c88ccc59
Merge branch 'betterIsX' of https://github.com/michaelficarra/underscore
2011-10-24 11:16:04 -04:00
Jeremy Ashkenas
96fdf6fbac
Adding the ability to _.groupBy(list, 'account_id')
2011-10-21 14:44:38 -04:00
Jeremy Ashkenas
00cd88cfa6
Enhancing _.bind() to support binding constructors ... which you would never, ever want to do.
2011-10-19 16:51:53 -04:00
Jeremy Ashkenas
4b2de2e107
Fixes #341 , flattening arrays in the context of taking a union shouldn't be deep. Adding a shallow parameter to _.flatten()
2011-10-19 15:59:53 -04:00
Jeremy Ashkenas
7fc616943e
Issue #329 , special check for the common and magical 'length' property.
2011-10-18 23:26:59 -04:00
Jeremy Ashkenas
e79586515c
Issue #329 -- significant change to _.isEqual semantics.
2011-10-18 16:07:23 -04:00
Kevin Malakoff
f2a64227fd
Reimplemented _.isEqual tests and patch in a fresh branch.
2011-10-06 15:50:51 +02:00
Jeremy Ashkenas
cc6a9d494d
Merging in escaping for Underscore templates, using <%- syntax. Sorry Eco.
2011-10-05 16:19:00 -04:00
Jeremy Ashkenas
ac191a28a5
merging in #324 as _.initial
2011-10-05 15:32:34 -04:00
Pier Paolo Ramon
dcda142655
Tests for _.init
2011-10-05 14:14:51 +02:00
Michael Ficarra
221161cecc
better isXXX checks; the current tests have too many false positives
2011-10-04 22:24:36 -04:00
Jeremy Ashkenas
348c93515c
Issue #272 ... min and max of empty objects.
2011-10-04 17:23:55 -04:00
Jeremy Ashkenas
921b592cd7
Merge pull request #281 from ryantenney/master
...
Array Shuffle
2011-10-04 14:11:30 -07:00