John-David Dalton
873cc63f94
Add _.partialRight and make _.assign and _.defaults work with arrays.
...
Former-commit-id: 6d9fea855de53e9ccb5ac6f58db68239ef08e9de
2013-01-19 22:17:14 -08:00
John-David Dalton
39fc839ff2
Fix test/test-build.js to work with build.js modifications.
...
Former-commit-id: 9df41ae02627557a21f282f70a73a447497b8984
2013-01-19 16:42:16 -08:00
John-David Dalton
5fe7ca5e70
Update vendor/backbone.
...
Former-commit-id: faf9ed71356e1ae8b5c4f65e7084243571cb7d82
2013-01-17 00:40:49 -08:00
John-David Dalton
c9bec8e636
Fix typo in _.merge unit test.
...
Former-commit-id: 15b2389bca12cb1655a07a51525624f7af9caa6c
2013-01-16 23:22:07 -08:00
John-David Dalton
ab83f2d5e2
Ensure _.first and _.last have the correct chaining behavior when passing a callback and thisArg.
...
Former-commit-id: 4d54fd677fa48bf8de033696c58ee66babd77a81
2013-01-16 01:39:58 -08:00
John-David Dalton
b60d0cdb17
Added support for _.merge to accept callback and thisArg arguments. [ closes #154 ]
...
Former-commit-id: 5d641ae4ba1d120d776a895f8bc9b8c1a7def0b6
2013-01-16 01:11:39 -08:00
John-David Dalton
16a204335e
Ensure _.merge produces dense arrays and revert accepting arrays of arguments for _.compose, _.defaults, _.extend, and _.merge.
...
Former-commit-id: a02772f8be04e187cbbfeb324cd4fb4318098162
2013-01-15 01:32:21 -08:00
John-David Dalton
6ba4778c1b
Make methods capable of accepting unlimited arguments consistently accept either individual arguments or arrays of arguments.
...
Former-commit-id: b9f0c744f79e74889323f4fd7f737d10acd32ada
2013-01-14 01:11:46 -08:00
John-David Dalton
0404c2266c
Use strictEqual when the expected result is 0 or 1.
...
Former-commit-id: ff439b0e7252351663b754267056ad09e0f89838
2013-01-13 15:12:02 -08:00
John-David Dalton
e5e914282f
Allow _.first, _.last, _.initial, and _.rest to accept callback and thisArg arguments. [ closes #155 ]
...
Former-commit-id: b921ae0ccc188c5544480f397216ce3b2479989e
2013-01-13 14:58:53 -08:00
John-David Dalton
9867d4bdc3
Add unit test for passing an object as callback to _.find.
...
Former-commit-id: 36da6e95473e85ac799180618e1a546d87f0686f
2013-01-12 20:42:54 -08:00
John-David Dalton
e2c2a37221
Make _.merge assign null values. [ closes #151 ]
...
Former-commit-id: 5a839996db9475182d5957d2f8cb4b3c265b0d9f
2013-01-05 00:12:33 -08:00
John-David Dalton
a14be3a42c
Add "imports" option to _.templateSettings. [ closes #148 ]
...
Former-commit-id: 16a019d27aea2e7a72665f62adf4c4c35e29b4bf
2012-12-30 12:23:51 -06:00
John-David Dalton
716a5b9b5a
Update _.random docs and add unit tests.
...
Former-commit-id: d4a033bf83ad5fce7bb3b09467305730a89adc01
2012-12-28 20:22:04 -06:00
John-David Dalton
ef7cb26b01
Update vendor/underscore and continue to tweak _.throttle unit tests to avoid false fails.
...
Former-commit-id: b5ba7b53e3bbebb3fa42da7e197f746515c8efb0
2012-12-24 09:49:46 -06:00
John-David Dalton
0ad6ac95b2
Avoid setTimeout inconsistencies in the unit tests.
...
Former-commit-id: fdbe08fcb381bf7771a1a7e474882d82e5bdbdf2
2012-12-23 10:10:28 -06:00
John-David Dalton
bda4747e9c
Use @license in the copyright/license header. [ closes #138 ]
...
Former-commit-id: 3b924dad24d56e0fd33e4df1341b09c6165521a1
2012-12-22 15:18:14 -06:00
John-David Dalton
11912008dd
Account for at in an underscore build test.
...
Former-commit-id: 7222681ef1e5ec17e940789efc38e99be97c0116
2012-12-18 22:41:50 -08:00
John-David Dalton
bfea443e55
Cleanup _.at and add build tests.
...
Former-commit-id: 7648376e1ef447ae83d621b449b73acec355bb67
2012-12-18 21:16:10 -08:00
Dan Heberden
4a0897c734
build in functionality to at, add string support, optimize, and add more tests
...
Former-commit-id: 951ef27e55fff5a70d09916b55b85f9e725f751a
2012-12-18 15:10:10 -08:00
Dan Heberden
c86a16df7f
change .grab to .at, add unlimited args or numbers or arrays and simplify function call to use values and pick
...
Former-commit-id: 3deb82ad9f55cd7261453a40bb0f046a5340790d
2012-12-18 12:52:44 -08:00
Dan Heberden
2ae0e9d902
add grab method to get elements in a collection that match the indexes in the provided list array
...
Former-commit-id: 18df81c229cab4acde8f8157df9bb1001a51e9db
2012-12-18 10:00:24 -08:00
John-David Dalton
692c884ca2
Ensure test count is the same for dev and prod builds.
...
Former-commit-id: 00e24fdd70d52bc6be4ae53fed43933fcf2c35da
2012-12-17 08:21:13 -08:00
John-David Dalton
cca4c4be80
Fix hasObjectSpliceBug implementations of _#pop, _#shift, and _#splice.
...
Former-commit-id: 91a3bc259c85bd269c3d895b66204bdc4d158827
2012-12-16 00:14:08 -08:00
John-David Dalton
8bee3ebd65
Update backbone method dependencies.
...
Former-commit-id: 1b030f0a7b2f4065ec1dfc9ef911de77ebd7d842
2012-12-14 00:54:36 -08:00
John-David Dalton
90597530a4
Add _.cloneDeep alias of _.clone(…, true). [ closes #140 ]
...
Former-commit-id: b71397d5c5b71cb28a60eb4656cbaf12f6b03d1a
2012-12-14 00:24:02 -08:00
John-David Dalton
0ba05e4de0
Add @license to minified copyright header to preserve it in case of double minification. [ closes #138 ]
...
Former-commit-id: 6c9b72f9c807daac613ff2d4339c0e3c4e7cafe3
2012-12-12 00:37:56 -08:00
John-David Dalton
1a3c20f91d
Tweak _.throttle unit test pass more consistently.
...
Former-commit-id: 91063b5c6ae0c9beb2c86cc21153d75f060afef1
2012-12-11 01:10:52 -08:00
John-David Dalton
8684f75254
Cleanup lib and build unit tests.
...
Former-commit-id: 96171aa70fee408f5237e0615ace4faa6541caa7
2012-12-09 21:59:05 -08:00
John-David Dalton
11cd924ce1
Rework the chaining behavior of Array wrapper methods.
...
Former-commit-id: fb8add58a861a19a2df63d6ff377c2a9537a38b6
2012-12-09 21:58:31 -08:00
John-David Dalton
5eb3106706
Updating Backbone/Underscore unit tests to avoid failing tests due to different chaining implementations.
...
Former-commit-id: d797a3547368faae04806d61818327e7d2319309
2012-12-09 00:23:02 -08:00
John-David Dalton
cf5e5dbe55
Update build to add _.chain and _#chain for backbone and underscore builds.
...
Former-commit-id: 2c910de419904a1285d246a3b08d87cb4daafa18
2012-12-08 18:46:09 -08:00
John-David Dalton
32b9de05f2
Cleanup test/test-build.js.
...
Former-commit-id: 4edb24bf22b8e8f9aa45b08a97289c1b83461e16
2012-12-08 01:24:25 -08:00
Kit Cambridge
c79bed22f8
Ensure that passing settings=... does not clobber the default moduleId.
...
Precompiling a template with `settings` previously generated a snippet
resembling `define(["undefined"], function(lodash) { ... })` if the `settings`
object did not contain a `moduleId` property. You can now pass `settings` and
`moduleId` options simultaneously; the builder will always use the `moduleId`
property in `settings` if it is provided, and default to `moduleId` otherwise.
Former-commit-id: 711b4f167dc08ce3d42029e9001ebdb2d8d60a56
2012-12-07 19:41:11 -08:00
John-David Dalton
54b862bd79
Bump to v1.0.0-rc.2.
...
Former-commit-id: 55bca6a70e127152329deeff509a72a73436f40e
2012-12-05 02:24:46 -08:00
John-David Dalton
221b347bd9
Update vendor/underscore to v1.4.3 and update the Underscore build compatibility.
...
Former-commit-id: ebcaad4a92848bef3bbf65bb8eb3a0c1553e005c
2012-12-05 01:03:10 -08:00
John-David Dalton
ed8746df77
Rebuild update vendors, minified files, and adjust README.md changelog.
...
Former-commit-id: a01567b3d8e88da0cb20e12c864703e633b86fc6
2012-12-04 01:29:24 -08:00
John-David Dalton
bb187db49d
Tweak _.throttle unit test and add _.bind test.
...
Former-commit-id: b863194c661d97177bbcda9676699e9753f0db22
2012-12-03 22:37:09 -08:00
John-David Dalton
6188c38053
Move bound inheritance hookup inside bound.
...
Former-commit-id: 7f95fffa14ef42f8f065aad124ac883740baac64
2012-12-03 22:07:45 -08:00
John-David Dalton
9bccc9c53c
Ensured _.throttle nulls the timeoutId. [ closes #129 ]
...
Former-commit-id: 24242f513e01adb2827cc3a5af6c8904098a9280
2012-12-03 01:04:54 -08:00
John-David Dalton
94258feb09
Make _#bind return non-wrapped values and cleanup a _.template unit test.
...
Former-commit-id: 351e4ae8b346a69a795c6d2bfe6a55b306515af6
2012-12-02 21:19:34 -08:00
John-David Dalton
da9758c2f3
Ensure bound result of _.bind(func, …) is an instance of bound and func.
...
Former-commit-id: d8176ad5eb45a3d675617676fc1eee4d9cbd6ebc
2012-11-30 23:16:39 -08:00
John-David Dalton
3e11d58d73
Ensure _.toArray returns a dence array.
...
Former-commit-id: 534091d4d200208b8aa831d86801d5e9d73410fe
2012-11-30 22:51:15 -08:00
John-David Dalton
6b35c097d6
Make deep _.clone copy array properties assigned by RegExp#exec.
...
Former-commit-id: b465457babfc04e8204048dfaeff6e5d37e5e43c
2012-11-30 00:40:32 -08:00
John-David Dalton
619ba13265
Make _.uniqueId consistently return a string value.
...
Former-commit-id: 5a5c626df83b0fc78e9bae37510680383f112c0b
2012-11-29 22:38:15 -08:00
John-David Dalton
3a5ed6e800
Ensure revised _.isEqual works correctly in Underscore build.
...
Former-commit-id: 24c01405f08f8925bfe473d5d7e9ad0a270382b6
2012-11-29 08:54:33 -08:00
John-David Dalton
52cddc015b
Make _.clone follow the structured cloning algorithm's behavior for cloning objects created by constructors other than Object and make _.isEqual equate objects to arguments objects.
...
Former-commit-id: a387c6444694d8d550ab463ea5290088d3356d8b
2012-11-29 02:04:16 -08:00
John-David Dalton
e9f752bd67
Merge /master into /no-chain
...
Former-commit-id: 59e5a4b13eb8bddd39bd37d917344715d62bf385
2012-11-20 07:47:48 -08:00
John-David Dalton
3df9fc6225
Ensure _.reduce and _.reduceRight pass the correct number of callback arguments.
...
Former-commit-id: fec2d28b5a69ceb590e0ef1d8a0792b25b53c7e9
2012-11-20 07:43:09 -08:00
John-David Dalton
b57fe466ce
Make _(…) wrapper versions of _.first and _.last capable of returning wrapped and unwrapped values.
...
Former-commit-id: b30704c1ce359213aa09069b290ee55edfb3e33e
2012-11-20 07:32:51 -08:00