Commit Graph

528 Commits

Author SHA1 Message Date
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
7157d0187f removing voluminous verbose verbiage 2012-01-04 15:22:33 -05:00
Jeremy Ashkenas
ecef23c1cb Merge pull request #417 from alanhogan/patch-1
Extends definitions of throttle & debounce to make usage extra-clear.
2012-01-04 12:10:56 -08:00
Jeremy Ashkenas
62c814d9fe Fixes #408: _.chain(object) as well as _(object).chain() 2011-12-30 15:07:22 -05:00
Alan Hogan
3a225eada5 Typo 2011-12-23 16:48:56 -08:00
Alan Hogan
0d463de74a Extends definitions of throttle & debounce to make usage extra-clear. 2011-12-22 18:03:03 -08:00
Jeremy Ashkenas
66bb646be7 Merge pull request #415 from HSSC/master
use _.isFunction in _.invoke
2011-12-22 11:43:52 -08: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
Jeremy Ashkenas
e58af52060 Merge pull request #410 from foobarfighter/wrap-bug-fix
Fixes #409 - Unexpected arguments passed to wrapper function in _.wrap when the first argument of calling the wrapped function is an array
2011-12-20 04:47:29 -08: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
b27ed66d77 Fixes #397 2011-12-16 12:47:46 -05:00
Jeremy Ashkenas
3c5686f784 Fixes #403 2011-12-16 12:41:20 -05:00
Jeremy Ashkenas
eb42c856c4 Fixes #406 2011-12-16 10:05:32 -05:00
Stuart Knightley
c8ecb47765 Templating fix for when an escaped character is used in Javascript
If an escaped character (e.g. \n) is used in embedded Javascript inside
a template then it gets escaped to \\n. If someone has put an escaped
character in their JS then they probably want it left that way.

This commit replaces \\s with a single \ when inside evaluation tags,
reverting the previous template escaping.
2011-12-08 11:36:20 -08: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
cf1d69227b adding concat reference 2011-12-07 09:30:55 -05:00
Jeremy Ashkenas
c67eaf672b adding back style and implementation tweaks from #385 2011-12-07 09:29:11 -05:00
Jeremy Ashkenas
9e41927293 rolling back to the previous implementation of 'each' ... cancels out #385 2011-12-06 17:33:43 -05:00
Jeremy Ashkenas
b3290c127a style tweaks. 2011-12-06 14:08:47 -05:00
Jeremy Ashkenas
e801de0e6c Merge pull request #390 from jdalton/unittests
Add unit tests and cleanup code for for-in issues.
2011-12-06 04:30:35 -08: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
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
Jeremy Ashkenas
835f959d2d Merge pull request #391 from jdalton/reduce
Allow _.reduce and _.reduceRight to have an explicitly undefined initial value
2011-12-05 08:26:43 -08: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
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
65ab040a7b resolving merge 2011-11-23 10:42:10 -05:00
Jeremy Ashkenas
65d5d60bfa Fixes #372 -- preserve dynamic scope for _.template functions. 2011-11-23 10:40:08 -05:00
Jeremy Ashkenas
866be70a7a Merge pull request #375 from zakj/patch-1
Add missing comma to index.html
2011-11-18 20:05:23 -08:00
Zak Johnson
55cddd9475 Add missing comma to index.html 2011-11-18 19:52:35 -08:00
Jeremy Ashkenas
7c9516321c Update underscore.js 2011-11-18 11:19:15 -05:00
Jeremy Ashkenas
aafc832a77 Merge pull request #374 from azicchetti/master
Fixing a scope issue of the function returned by template()
2011-11-18 08:18:51 -08:00
Andrea Zicchetti
5e7d75d6f6 Fixed a scope issue with the returned template function 2011-11-18 17:12:53 +01: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
135f93e520 Fixes #360, documenting _.escape. 2011-11-14 14:39:19 -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