onClick should be onclick....
8 years ago.
that would be the code that work
{text: "Split", onclick: function(args) {
var time = dp.getDate(dp.coords.x, !elements.snap.checked);
var e = args.target.source;
var originalEnd = e.end();
DayPilot