jQuery2 for browserify
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
public
test
.gitignore
Gruntfile.js
MIT-LICENSE.txt
README.md
jquery-2.0.3.js
package.json

README.md

browser support

Introduction

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

With Backbone

// 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);
// => undefined
console.log(backbone);
// => Backbone
console.log(window.$);
// => undefined