Found a bug in component scheduler.js

Hi.

While trying the scheduler example, I found a bug in “//cdn.webix.com/components/scheduler/scheduler.js”. Their’s 2 pieces of code for loading on demand dhtmlx scheduler ressources:

webix.require(“scheduler/dhtmlxscheduler.css”);
webix.require([“scheduler/dhtmlxscheduler.js”] …);

If I use webix via CDN “//cdn.webix.com/edge/webix.js” the base folder when calling “webix.require” is “//cdn.webix.com/edge/”. So when I tried to actually use a scheduler, it try to load “//cdn.webix.com/edge/scheduler/dhtmlxscheduler.js” which give a 404 error.

I fixed by putting instead:

webix.require("…/components/scheduler/scheduler/dhtmlxscheduler.css");
webix.require(["…/components/scheduler/scheduler/dhtmlxscheduler.js"], …)

Hi,

you can define the necessary webix.codebase for webix.require: