Offer window alternative to this context. Fixes Webspack and Browserify support

This commit is contained in:
Tanner Linsley 2015-12-30 09:43:51 -07:00
parent 824f5880fb
commit ac9fe08068
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",