You can clone with
HTTPS or Subversion.
the code is trying to be smart and define itself as an amd module when amd is present. However if define is present but the library is loaded in a script tag then it won't mixin into underscore. If possible it should check if AMD is present AND it is being loaded through AMD.
I think we could try to change this to just trying all available integration methods one after other, in not excluding way.
So that it'll define itself as amd module if amd is available, insert itself in underscore if underscore is available and then export itself as module.exports if possible :)
/cc @epeli @edtsech
For those of us working on teams that refuse to do anything but good ole
@rwz That would be a great solution, thanks.
Underscore.string tries all available integration methods in order
@sporto pushed the change. Can you please grab the current version and try it with your code. Will release later if there won't be any quirks.
@rwz This works great for us. thanks.