Hi,
I share with you my comment about scheduler._on_dbl_click() behavior.
In this method, right away the processus is stopped by the next condition, if it returns true :
if (this.config.readonly || !src.className) return;
In fact, having no className supposes that the triggering HTML element (e.<target|srcElement> or given src as param) is not a relevant container to be processed.
But I found one case where that could be usefull if this method could give a chance to theses kind of containers.
For example, a marked timespan created by passing in html property some HTML tags without CSS classes.
With this kind of marked timespan content, double-clicking on an child like “
By extension, the same case can be found with an event in which some HTML tags could be added, in text property for example. Double-clicking on the precise HTML content will trigger the method but an edition process will not be launched.
All that to say it could be convenient that this method, instead of doing directly a “return”, check if the element has a parent to propagate the processus.
A simple idea (copied from the default: of the method switch/case):
if (this.config.readonly) return;
if (!src.className) {
if (src.parentNode && src != this) {
return scheduler._on_dbl_click(e,src.parentNode);
}
return;
}
Else, perhaps just do not test className existence at the start of the method and add an empty case in the switch, like :
case "":
if (src.parentNode && src != this) {
return scheduler._on_dbl_click(e,src.parentNode);
}
return;
break;
Or even simpler let the “default” swicth/case behavior doing the trick, by eventually just checking if name is empty before trying to get the dblclick_() method existence.
NB : But what about side-effects, the famous question