Merge pull request #409 from BrettBukowski/commonjs

Add support for CommonJS module definition
This commit is contained in:
Nick Downie 2014-07-02 21:36:17 +01:00
commit 2183d09b58
3 changed files with 5 additions and 1 deletions

2
Chart.js vendored
View File

@ -1873,6 +1873,8 @@
define(function(){
return Chart;
});
} else if (typeof module === 'object' && module.exports) {
module.exports = Chart;
}
root.Chart = Chart;

2
Chart.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -1873,6 +1873,8 @@
define(function(){
return Chart;
});
} else if (typeof module === 'object' && module.exports) {
module.exports = Chart;
}
root.Chart = Chart;