From 79e35e3bc0bc74dfb72756b714587420b86aa801 Mon Sep 17 00:00:00 2001 From: jos Date: Tue, 16 Jun 2015 09:22:56 +0200 Subject: [PATCH] Throw an error from abstract method `Core.prototype.getDataRange` (see #966) --- lib/timeline/Core.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/timeline/Core.js b/lib/timeline/Core.js index fe317e2b..ada857fd 100644 --- a/lib/timeline/Core.js +++ b/lib/timeline/Core.js @@ -480,11 +480,7 @@ Core.prototype.fit = function(options) { */ Core.prototype.getDataRange = function() { // must be implemented by Timeline and Graph2d - - return { - min: null, - max: null - } + throw new Error('Cannot invoke abstract method getDataRange'); }; /**