jquery2

jQuery2 for browserify

A patched version of jQuery 2.0.2 that doesn't create the global $. It's supposed to be used with node-browserify.

// src/backbone.js 
'use strict';
 
var jquery = require('jquery2');
var backbone = require('backbone');
 
backbone.= jquery;
 
module.exports = backbone;
// src/main.js 
'use strict';
 
var backbone = require('./backbone');
 
console.log(window.backbone);
// =>  
console.log(backbone);
// => Backbone 
console.log(window.$);
// =>