Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rhino compatibility? #4

Closed
matschaffer opened this issue Oct 29, 2009 · 2 comments
Closed

Rhino compatibility? #4

matschaffer opened this issue Oct 29, 2009 · 2 comments
Labels

Comments

@matschaffer
Copy link

I'd love to see a simple data-processing lib like this that's also rhino (or other non-browser engine) compatible:

js> load('underscore.js')
js: "underscore.js", line 17: uncaught JavaScript runtime exception: ReferenceError: "window" is not defined.
        at underscore.js:17
        at underscore.js:9
        at <stdin>:2
@documentcloud
Copy link

You got it. Underscore was previously CommonJS compatible, and after a little bit of setup logic cleanup, it now works fine on Rhino too. Give 0.3.2 a spin.

 js> load("underscore.js")
 js> _.each([1,2,3], function(n){ print(n); )});       
 1
 2
 3
 1,2,3
 js>

@matschaffer
Copy link
Author

Sweet! Can't wait to start playing with it!

captbaritone added a commit to captbaritone/underscore that referenced this issue Dec 7, 2015
In pull request jashkenas#4, `_.iteratee()` was converted into the fully internal
function `cb()`. However, the comment was not not updated to reflect its new
internal status.
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant