'wraps' a function around the original function
target | function | the function to wrap. It receives the new logic |
source | function | a function that contains the logic to wrap |
function | the target object 'wrapped' around by the new logic |
list.add = webix.wrap(list.add, function(obj, index){
//log all data adding operations
console.log("add "+obj.id);
});
Back to top