From: etimberg Date: Thu, 3 Dec 2015 02:10:51 +0000 (-0500) Subject: Time scale uses moment loaded through UMD X-Git-Tag: 2.0.0-beta2~35^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40c8289ce886e47098d89448d940a8c12e7ade1c;p=thirdparty%2FChart.js.git Time scale uses moment loaded through UMD --- diff --git a/src/scales/scale.time.js b/src/scales/scale.time.js index ad8fee7d4..ea63feed2 100644 --- a/src/scales/scale.time.js +++ b/src/scales/scale.time.js @@ -1,7 +1,7 @@ -(function() { +(function(moment) { "use strict"; - if (!window.moment) { + if (!moment) { console.warn('Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at http://momentjs.com/'); return; } @@ -226,4 +226,4 @@ }); Chart.scaleService.registerScaleType("time", TimeScale, defaultConfig); -}).call(this); +}).call(this, moment);