Explicit global definition

Some script bundlers such as Browserify compile a wrapper function over the modules. If var-statement is used to define the global it will be hidden inside it. Use window-global to define Chart global explicitly.
This commit is contained in:
Esa-Matti Suuronen 2013-04-13 11:55:36 +03:00
parent 4a94b44a77
commit 624fbfd474

2
Chart.js vendored
View File

@ -8,7 +8,7 @@
*/
//Define the global Chart Variable as a class.
var Chart = function(context){
window.Chart = function(context){
var chart = this;