Merge pull request #1842 from nnnick/v2.0-fix-browserify-webpack-support

Offer window alternative to `this` context.  Fixes Webspack and Browserify support
This commit is contained in:
Evert Timberg
2015-12-30 11:52:26 -05:00
3 changed files with 68 additions and 61 deletions

115
Chart.js vendored

File diff suppressed because one or more lines are too long

12
Chart.min.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -84,7 +84,7 @@ function buildTask() {
" } else {\n"+
" root.<%= namespace %> = factory.call(root,<%= global %>);\n"+
" }\n"+
"}(this, function(<%= param %>) {\n"+
"}(this || window, function(<%= param %>) {\n"+
"<%= contents %>\n"+
"return <%= exports %>;\n"+
"}));\n",