wrap of common helpers, Methods Webix Docs
'wraps' a function around the original function
function wrap(function target,function source);
target
| function | the target object 'wrapped' around by the new logic |
Example
list.add = webix.wrap(list.add, function(obj, index){
//log all data adding operations
console.log("add "+obj.id);
});