lifesinger
52f66a807c
remove unused code and avoid variable redeclaration
2011-01-17 14:48:43 +08:00
Jeremy Ashkenas
f03d5fa57c
Underscore 1.1.4 is on the books.
2011-01-09 14:03:45 -05:00
Jeremy Ashkenas
fad002de53
trying to avoid obj.callee (strict mode)
2010-12-21 00:26:25 -05:00
Jeremy Ashkenas
b3a373a716
safer but slower toArray fallback, in light of .callee throwing in strict mode.
2010-12-20 17:39:57 -05:00
Jeremy Ashkenas
a890afec18
Issue #83 ... typo.
2010-12-20 17:06:24 -05:00
Jeremy Ashkenas
422d35438c
updating _.isNaN comment doc.
2010-12-20 16:52:24 -05:00
Jeremy Ashkenas
2dff99d518
switching to canonical isNaN
2010-12-20 16:42:54 -05:00
Jeremy Ashkenas
d2d6cfe667
Rework of #68 , to use a flag to indexOf, instead of a separate function.
2010-12-17 10:57:12 -05:00
Jeremy Ashkenas
8c2570b0ba
Issue #68 . Adding _.sortedIndexOf
2010-12-17 10:35:53 -05:00
Jeremy Ashkenas
3a113d2d88
Issue #79 . Correctly setting 'this' in '_.wrap'
2010-12-13 16:25:55 -05:00
Jeremy Ashkenas
9a9f2a85da
Merge branch 'master' of http://github.com/ryantenney/underscore
2010-12-13 10:31:05 -05:00
Ryan W Tenney
cdcf18b79c
Improve compliance with Array methods in ES5 when passed a null value. (ES5 Array methods treat null like [])
2010-12-06 23:36:54 -05:00
Ryan W Tenney
8f86e3eb67
Improve compliance with Array methods in ES5 when passed a null value. (ES5 Array methods treat null like [])
2010-12-06 23:30:43 -05:00
Ryan W Tenney
ebe0cc6f45
Access the _wrapped property directly instead of calling value() when unwrapping wrapped objects in isEqual()
2010-12-03 14:34:25 -05:00
Jeremy Ashkenas
e63f44f798
period.
2010-12-03 10:03:50 -05:00
Jeremy Ashkenas
70d760f4f5
merging in jasondavies isEqual patch for wrapped objects.
2010-12-03 10:03:30 -05:00
Jason Davies
85f1c770df
Merge branch 'master' of https://github.com/documentcloud/underscore
2010-12-03 13:04:34 +00:00
Jason Davies
2120b27b22
Fix _.isEquals() for wrapped objects
...
This caught me out when writing some unit tests that use _.isEquals().
They were all passing even though I knew they shouldn't be, and I
realised I was checking equality with a wrapped object that I'd
forgotten to unwrap.
2010-12-03 13:01:58 +00:00
Jeremy Ashkenas
3b916a2cf7
Adding a note about the _.each change.
2010-12-02 21:23:04 -05:00
Jeremy Ashkenas
c714175cf1
Underscore.js 1.1.3
2010-12-01 12:49:45 -05:00
Jeremy Ashkenas
2d06e1d526
Issue #70 -- implementing each, find, all, any, etc. without the use of a try/catch/throw. Minor speedup + avoids destroying the stack trace.
2010-12-01 11:08:34 -05:00
Jeremy Ashkenas
6b8bb0cacd
Better Underscore isType checking, in the presence of Internet Explorer host objects, which are a bit touchy.
2010-12-01 10:25:55 -05:00
Jeremy Ashkenas
00237103fc
removing an errant a.
2010-12-01 09:49:45 -05:00
Jeremy Ashkenas
c86a2fe3a8
Safer CommonJS detection... module.exports must be defined.
2010-12-01 09:44:11 -05:00
Jeremy Ashkenas
2badecf038
Tweaking README ... linking to contributors.
2010-11-30 12:02:42 -05:00
Jeremy Ashkenas
71439c35ac
Merging in a patch for _ = require('underscore')
2010-11-30 11:59:45 -05:00
Jeremy Ashkenas
a3106a99a6
Merge branch 'master' of https://github.com/josh/underscore
2010-11-30 11:54:01 -05:00
Jeremy Ashkenas
9e3e067f50
Initial draft of _.throttle and _.debounce
2010-11-30 11:41:48 -05:00
Joshua Peek
538fea377e
Export _ object as the entire module
2010-11-30 10:09:50 -06:00
Jason Davies
6763b06192
Fix spelling: occurence -> occurrence
2010-11-11 23:25:31 +00:00
Jeremy Ashkenas
e0a3d696be
Adding help info to the homepage.
2010-11-11 12:30:21 -05:00
Jason Davies
47eb154ccf
Preserve backslashes in _.template()
...
For example, templates containing things like the literal string
`\ribbit` weren't being escaped properly when being compiled. The `\r`
was being interpreted as a carriage return character.
I've added a test for this too, and all the existing tests pass.
2010-11-09 22:59:03 +00:00
Jeremy Ashkenas
44d09ae1c6
Adding header + version number to -min.js
2010-11-07 19:00:25 -05:00
summatix
13993f466a
Added index file for Node.JS
2010-11-07 10:28:14 +10:00
Jeremy Ashkenas
da3edddef9
Merging in Issue #54
2010-11-01 08:44:31 -04:00
Jeremy Ashkenas
a08c3dbd6b
Merge branch 'fix_reduceRight_initial_value' of http://github.com/mcmire/underscore
2010-11-01 08:42:19 -04:00
Jeremy Ashkenas
51e327f8e5
Tweaks to Issue #53
2010-11-01 08:40:41 -04:00
Jeremy Ashkenas
974ae99e87
Merge branch 'fix_reduce_initial_value' of http://github.com/mcmire/underscore
2010-11-01 08:30:53 -04:00
Jeremy Ashkenas
c595974771
Merge branch 'gh-pages' of http://github.com/bkudria/underscore
2010-11-01 08:28:21 -04:00
Elliot Winkler
f729769d85
Fix reduceRight() so that if you don't pass in an initial value, the last item in the collection is used
2010-10-31 19:03:52 -06:00
Elliot Winkler
c21e7b24c6
Fix reduce() so that if you don't pass in an initial value, the first item in the collection is used
2010-10-31 18:51:30 -06:00
Benjamin Kudria
339ae67c01
Fix (grammar) typo.
2010-10-29 14:56:25 -07:00
Jeremy Ashkenas
31efd854f8
removing now unused propertyIsEnumerable reference.
2010-10-18 20:45:18 -04:00
Jeremy Ashkenas
8fe19f2023
Underscore 1.1.2
2010-10-15 17:21:41 -04:00
Jeremy Ashkenas
8aeb2832eb
Merge branch 'master' of http://github.com/ryantenney/underscore
2010-10-15 17:16:26 -04:00
Jeremy Ashkenas
74d282ccc8
fixing mistakenly-aliased contains ... should refer to include.
2010-10-15 17:15:26 -04:00
Ryan W Tenney
c994dec4c0
adding alias 'unique' to point to 'uniq'
2010-10-10 21:38:46 -04:00
Jeremy Ashkenas
b07c802766
tweaking documentation, license mention
2010-10-07 10:49:10 -04:00
Jeremy Ashkenas
5b4b308c91
Fixing template settings
2010-10-07 10:44:49 -04:00
Jeremy Ashkenas
0fb9a95182
Merging in Ryan Tenney's 'improuvements'
2010-10-06 10:55:19 -04:00