Hacker News new | ask | show | jobs
by s00pcan 5404 days ago
In the codebase here we use 'jQuery' instead of '$'.
1 comments

Ditto. If you pull in multiple plugins or additional frameworks (for some reason, we mix YUI with jquery), the $() notation can become broken, and you have to explicitly call jQuery().
Unless you put all your code in a big closure to make a correct $ in function scope:

  (function ($)
  {
  
  }) (jQuery);