Permalink
Browse files

change wrap style to try and stop jquery leaking its globals

  • Loading branch information...
1 parent 7f8e925 commit e3041bd9038bbc3019fc0c39093cbe5decbcb78c @jmars committed Jul 25, 2011
Showing with 8,985 additions and 32 deletions.
  1. +1 −11 README.md
  2. +8,983 −0 lib/jquery-1.6.2.js
  3. +1 −1 package.json
  4. +0 −20 test.coffee
View
@@ -3,14 +3,4 @@ jQuery packaged for use with [node-browserify](https://github.com/substack/node-
Just add it to your browserify require list and use it!
var $ = require('jquery-browserify')
- $('img[attr$='png']).hide()
-
-If you are using browserify >= 0.4.7 you can map it to 'jquery' for convenience, thanks substack!
-
- app.use(browserify({
- require : { jquery : 'jquery-browserify' }
- }));
-
-then it's just
-
- var something = require('jquery')
+ $('img[attr$='png']).hide()
Oops, something went wrong.

0 comments on commit e3041bd

Please sign in to comment.