Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

what does lodash.coffee do? #3

Closed
jcollum opened this Issue · 3 comments

2 participants

@jcollum

Lodash.coffee looks like something that might resolve an issue that I'm running into with amdefine and lodash -- but what is it supposed to do? Not an issue per se, because it looks like you just started building out this library. But if you've got a nifty solution for lodash and amdefine, it would be great if you could share it.

@andreineculau

@jcollum, to answer your questions

  • what does it do - it will give you a lodash (extended with some of the like/_/*.coffee funs)
  • just started out this lib - yes, and no. it's oldish, but indeed immature. AND I haven't used/tested it in the browser for a long time now. I'm currently using it only in nodejs projects.

the purpose of OTW is exactly One Thing Well. I have had projects where it didn't make sense to load underscore just because you might have wanted _.map or _.each.

now my turn for questions - what is the problem with lodash and amdefine that you want to fix ?

@jcollum

Cool, thanks for the feedback. I was running into a problem with loading lodash while using amdefine in other files. I had a define that didn't match this:

if (typeof define !== 'function') { var define = require('amdefine')(module) }

and that was breaking things. It's all good now.

@jcollum jcollum closed this
@andreineculau

@jcollum good to hear :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.