Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Module is a function, passing a function to $ sets an onready handler
- // But we want to use $ to bind and trigger events on arbitrary objects
- // So it's wrapped in a []
- $([Module])
- .bind('create', function(event, module){
- module.hierarchy_node = new HierarchyNode(module);
- })
- .bind('blur', function(event, module){
- module.hierarchy_node.blur();
- })
- .bind('focus', function(event, module){
- $('#hierarchy li').removeClass('focus');
- module.hierarchy_node.node.addClass('focus');
- });
Add Comment
Please, Sign In to add comment