Edited underscore.js via GitHub
The old template method returns complied function or rendered string. I think it's not consistent. And change the global template settings is not a good idea. In my project, I need comply template with localization resources first, then render it with data, so I can't use the same delimiters.
I added the "compile" and "render" methods, and modified the "template" method for compatible with legacy calls.
Add reverse feature for sortBy method.
Add reverse feature for sortBy method.
Add test case for reverse sorted.
Correct the test case.
Edited underscore.js via GitHub
Edited test/collections.js via GitHub
Update
Merge branch 'master' of github.com:JacksonTian/underscore
Cleanup test/object.js to match existing coding style.
Make unit tests passable in IE < 8.
Avoid OOP wrapper unless explicitly testing it in test/arrays.js.
Remove no longer relevant custom `isEqual` method tests in test/objects.js.
Cleanup `_.template` test in test/utility.js
Fixes #877 -- uniqueId treats prefixes as strings and returns strings
removing json3 dependency in favor of qunit's deepEqual
reverting 'ensure a bound instance is an instance ...'
tweak uniqueId
Finish the previous `_.bind` revert.