Custom component working with 2.1.14 debug.js, but not with 2.1.14 standart .js

My intention was to create a range slider (with 2 markers).

So I copied the “ui.slider” component’s form the webix_debug.js version and just changed the name to “rangeSlider”. http://webix.com/snippet/c5406ca7

When include webix.js in the header the snippet does not work (as via the link above), but when I include webix_debug.js - all works fine.

Is there a difference between the standard/debug webix version js files (bug during obfuscation/minification) or am I doing something wrong?

Thanks in advance.

All methods and properties named like “_{something}” are counted as private and are compressed in webix.js

You can compress webix_debug.js with uglify-js or any other compression tool, so you will have a smaller file where you can use any methods.

Please beware while we maintain backward compatibility of public API, we may change signatures and names of private methods without notice.

On side note, in most cases you need not use private methods to modify behavior of component, all major methods are public and some inner properties has public aliases ( some._viewobj is equal to some.$view, some._settings is equal to some.config ). All extra extensions at webix.com - pivot, kanban, scheduler - are written by using only public API of components.

In future, if such necessity will arise, we can provide a separate build of Webix, that will contain all minifications except of private methods minification

Thank you very much for your explanation.
I will try to implement my solution without using the “_” methods/properties.