Merging code with dependencies? - Javascript

Posted by RadiantHex on Stack Overflow See other posts from Stack Overflow or by RadiantHex
Published on 2010-12-25T01:25:53Z Indexed on 2010/12/25 1:54 UTC
Read the original article Hit count: 270

Hi folks,

this might be quite simple, but I must say I'm a bit confused on this topic.

I'm writing code based on two popular libraries:

  • jQuery
  • underscore.js

I am just wondering what would be the best way to isolate the code and prevent conflicts and how to merge it with its dependencies.

By merging I mean putting them within the same file. :)


I hope I'm not asking something which is too basic.

...and a last thing

MERRY CHRISTMAS EVERYONE! =D

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery