wrap

webix.wrap(code, wrap)

webix.wrap helper.

Please look into the linked official documentation.

External references

Official documentation page.

Code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
webix.wrap = function(code, wrap){
    if (!code) return wrap;
    return function(){
        var result = code.apply(this, arguments);
        wrap.apply(this,arguments);
        return result;
    };
};

//check === undefined