Closed smee closed 4 years ago
The call to the function uses the date as this, not as the function argument. The callback will get an undefined argument but this will be bound to a Date object.
this
undefined
See https://github.com/visjs/vis-timeline/blob/d535f69ab067fa55f06c2f2f8f95ef9019db5bb2/lib/timeline/component/CustomTime.js#L164 should imho be
title = title.call(this,this.customTime);
I believe you are correct! Can you submit a PR for this fix?
:tada: This issue has been resolved in version 7.3.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
The call to the function uses the date as
this
, not as the function argument. The callback will get anundefined
argument butthis
will be bound to a Date object.See https://github.com/visjs/vis-timeline/blob/d535f69ab067fa55f06c2f2f8f95ef9019db5bb2/lib/timeline/component/CustomTime.js#L164 should imho be