Time Scale now requires and warns for Moment.js dep

This commit is contained in:
Tanner Linsley
2015-09-28 11:27:47 -06:00
parent e6d15474df
commit 1bdf5edc24

View File

@@ -1,6 +1,11 @@
(function() {
"use strict";
if (!window.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;
}
var root = this,
Chart = root.Chart,
helpers = Chart.helpers;