Documentation

once

allows to call code only once

void once(function code);

Parameters

codefunctioncode to execute

Example

some.attachEvent("onItemClick", webix.once(function()({
    alert("Will be shown only for the first click");
}))

Back to top