hasMethod

webix.ui.hasMethod(view, method)

webix.ui.hasMethod helper.

Please look into the linked official documentation.

References

helpers
ui().

Referenced by

helpers
markup, local.

External references

Official documentation page.

Code

1
2
3
4
5
6
7
8
9
ui.hasMethod = function(view, method){
    var obj = webix.ui[view];
    if (!obj) return false;

    if (obj.$protoWait)
        obj = obj.call(webix);

    return !!webix.ui[view].prototype[method];
};