From ea4ba1228cb772a6f872d2f8f697feae5b813539 Mon Sep 17 00:00:00 2001 From: Nathaniel Jayme Date: Wed, 16 Jan 2013 07:07:58 +0800 Subject: [PATCH] initialize click Bar and Line graph click handler initialize to function(){} --- morris.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/morris.js b/morris.js index 51289e5..32d4212 100644 --- a/morris.js +++ b/morris.js @@ -577,7 +577,8 @@ xLabelFormat: null, xLabelMargin: 50, continuousLine: true, - hideHover: false + hideHover: false, + click:function(){} }; Line.prototype.calc = function() { @@ -1147,7 +1148,8 @@ barSizeRatio: 0.75, barGap: 3, barColors: ['#0b62a4', '#7a92a3', '#4da74d', '#afd8f8', '#edc240', '#cb4b4b', '#9440ed'], - xLabelMargin: 50 + xLabelMargin: 50, + click:function(){} }; Bar.prototype.calc = function() {