Guest User

Untitled

a guest
Jul 21st, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. // Module is a function, passing a function to $ sets an onready handler
  2. // But we want to use $ to bind and trigger events on arbitrary objects
  3. // So it's wrapped in a []
  4. $([Module])
  5. .bind('create', function(event, module){
  6. module.hierarchy_node = new HierarchyNode(module);
  7. })
  8. .bind('blur', function(event, module){
  9. module.hierarchy_node.blur();
  10. })
  11. .bind('focus', function(event, module){
  12. $('#hierarchy li').removeClass('focus');
  13. module.hierarchy_node.node.addClass('focus');
  14. });
Add Comment
Please, Sign In to add comment