From 624fbfd474ae3a2d1ceb29fe041f9045a8ccbcb3 Mon Sep 17 00:00:00 2001 From: Esa-Matti Suuronen Date: Sat, 13 Apr 2013 11:55:36 +0300 Subject: [PATCH] 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. --- Chart.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Chart.js b/Chart.js index a2141a056..ffbe16f37 100755 --- a/Chart.js +++ b/Chart.js @@ -8,7 +8,7 @@ */ //Define the global Chart Variable as a class. -var Chart = function(context){ +window.Chart = function(context){ var chart = this;