once

webix.once(method)

webix.once helper.

Please look into the linked official documentation.

Referenced by

mixins
KeysNavigation().
views
segmented().

External references

Official documentation page.

Code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
webix.once=function(method){
    var flag = true;
    return function(){
        if (flag){
            flag = false;
            method.apply(this, arguments);
        }
    };
};

//common helpers

//generates unique ID (unique per window, nog GUID)