scope for resolving event and method names

object $scope;


some.$scope = {
   action:function(){ alert("works"); }
some.attachEvent("onItemClick", "action");


When event name or click handler defined as string name, component will check is the handler with such name exists in the $scope object first, and only after that will try to locate the global handler with the same name.

Back to top
If you have not checked yet, be sure to visit site of our main product Webix javascript ui framework and page of javascript tree product.