Skip to content

Commit

Permalink
added jquery as dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
kaareal committed Jan 20, 2016
1 parent b1d70d1 commit 6b8d89d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"name": "rickshaw",
"version": "1.5.7",
"version": "1.5.8",
"dependencies": {
"d3": "~3.3.6"
"d3": "~3.3.6",
"jquery": "2.1.4"
},
"keywords": [
"d3",
Expand Down
10 changes: 5 additions & 5 deletions rickshaw.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
define(['d3'], function (d3) {
return (root.Rickshaw = factory(d3));
define(['d3', 'jquery'], function (d3, jquery) {
return (root.Rickshaw = factory(d3, jquery));
});
} else if (typeof exports === 'object') {
module.exports = factory(require('d3'));
module.exports = factory(require('d3'), require('jquery'));
} else {
root.Rickshaw = factory(d3);
root.Rickshaw = factory(d3, jQuery);
}
}(this, function (d3) {
}(this, function (d3, jQuery) {
/* jshint -W079 */

var Rickshaw = {
Expand Down

0 comments on commit 6b8d89d

Please sign in to comment.