From 89660a3d318fe183e5b3ce395299bf2ca473efa0 Mon Sep 17 00:00:00 2001 From: jos Date: Thu, 9 Jul 2015 15:53:58 +0200 Subject: [PATCH] Added missing method getEventProperties in Core --- lib/timeline/Core.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/timeline/Core.js b/lib/timeline/Core.js index 545039c3..060dffce 100644 --- a/lib/timeline/Core.js +++ b/lib/timeline/Core.js @@ -396,6 +396,16 @@ Core.prototype.getCustomTime = function(id) { return customTimes[0].getCustomTime(); }; +/** + * Retrieve meta information from an event. + * Should be overridden by classes extending Core + * @param {Event} event + * @return {Object} An object with related information. + */ +Core.prototype.getEventProperties = function (event) { + return { event: event }; +}; + /** * Add custom vertical bar * @param {Date | String | Number} [time] A Date, unix timestamp, or