Jeremy Ashkenas
4aef322079
Merge branch 'master' of github.com:documentcloud/underscore
2011-12-05 11:45:11 -05:00
Jeremy Ashkenas
3df51e7004
fixing typo.
2011-12-05 11:45:03 -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
Jeremy Ashkenas
ed4826ca19
merging in @jdalton's #385
2011-12-02 18:35:45 -05:00
John-David Dalton
3c6a8ccd73
underscore: Fix cross-browser object enumeration issues. [jddalton]
2011-12-01 15:27:51 -05:00
Jeremy Ashkenas
bfa4fe8a4f
Merge pull request #343 from janraasch/indexOf
...
_.indexOf and _.lastIndexOf proper sparse array support.
2011-11-23 09:52:08 -08: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
Jan Raasch
bf7a351fd6
(Actually) Provided _.indexOf and _.lastIndexOf with proper sparse array support.
2011-11-15 23:55:04 +01:00
Jan Raasch
5c00abcf87
Provided _.indexOf and _.lastIndexOf with proper sparse array support.
2011-11-15 22:46:18 +01:00
Jeremy Ashkenas
8c346141dc
Underscore.js 1.2.2
2011-11-14 15:28:19 -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
f29785a0b7
cleaning up _.last implementation.
2011-11-14 14:27:44 -05: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
51b8293cee
re-styling previous commit.
2011-11-14 14:14:30 -05: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
6804754cf4
Merge branch 'master' of github.com:documentcloud/underscore
2011-11-14 14:04:33 -05: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
5d21f2f601
changed implementation of any to short-circuit when result is truthy
2011-11-03 23:16:47 -05:00
Jeff McGee
aedab9c7dd
fixed any() for strings on IE8
2011-11-03 18:47:07 -05:00
Jeremy Ashkenas
0535545038
Merge pull request #357 from kapooostin/master
...
Explicit definition of global context for compatibility with Adobe JS
2011-10-31 12:30:51 -07:00
kapooostin
aa916b8cfe
Added explicit definition of global context for compatibility with Adobe JS
...
Signed-off-by: kapooostin <kapooostin@gmail.com >
2011-10-31 23:15:14 +04: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
Jeremy Ashkenas
64b69c0cfa
Merge branch 'master' of github.com:documentcloud/underscore
2011-10-31 10:40:59 -04:00
Jeremy Ashkenas
7f23d279a8
Fixes #335 .
2011-10-31 10:40:45 -04:00
Kit Cambridge
efd29e12cd
_.isEqual: Issue #355 .
2011-10-30 20:45:56 -06:00
Brad Dunbar
81bad47bc0
style, clarity
2011-10-28 17:02:20 -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
ed3c05e74c
_.isEqual: Fix an erroneous check for the constructor property.
2011-10-25 23:20:31 -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
Neil E. Pearson
ad65e8cb03
Fixed _.template() HTML escaping for when _ isn't in scope, due
...
to noConflict() and minification.
2011-10-25 16:40:50 +11: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
9fcaac97b6
Removing a redundant finishThrottle check, renaming vars.
2011-10-24 14:39:14 -04:00
Jeremy Ashkenas
bffdb50f9b
Underscore.js 1.2.1
2011-10-24 14:23:36 -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
43878e8ef0
Merging in #321
2011-10-24 11:28:38 -04:00
Jeremy Ashkenas
58c88ccc59
Merge branch 'betterIsX' of https://github.com/michaelficarra/underscore
2011-10-24 11:16:04 -04:00
Jeremy Ashkenas
38b1fe0dd3
Fixes #345 .
2011-10-24 10:12:43 -04:00
Jeremy Ashkenas
9b7154878f
Merge branch 'master' of github.com:documentcloud/underscore
2011-10-21 14:44:55 -04:00
Jeremy Ashkenas
96fdf6fbac
Adding the ability to _.groupBy(list, 'account_id')
2011-10-21 14:44:38 -04:00
Michael Ficarra
4d6e2c6ed4
isNaN comment
2011-10-20 18:08:08 -03:00
Michael Ficarra
42e04ecc7a
execution time optimisations for _.isArguments, stricter es3 fallback
2011-10-19 23:53:00 -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
f1ba205731
cleaning up AMD comment.
2011-10-19 16:01:13 -04:00