code: function(ctx){
  		var opts = ctx.options,
  			tree = ctx.tree;
  
  		this._super(ctx);
  
  		// Prepare an object that will be passed with menu events
  		tree.ext.menu.data = {
  			tree: tree,
  			node: null,
  			$menu: null,
  			menuId: null
  		};
  
  //        tree.$container[0].oncontextmenu = function() {return false;};
  		// Replace the standard browser context menu with out own
  		tree.$container.delegate("span.fancytree-node", "contextmenu", function(event) {
  			var node = $.ui.fancytree.getNode(event),
  				ctx = {node: node, tree: node.tree, originalEvent: event, options: tree.options};
  			tree.ext.menu._openMenu(ctx);
  			return false;
  		});
  
  		// Use jquery.ui.menu
  		$(opts.menu.selector).menu({
  			create: function(event, ui){
  				tree.ext.menu.data.$menu = $(this).menu("widget");
  				var data = $.extend({}, tree.ext.menu.data);
  				opts.menu.create.call(tree, event, data);
  			},
  			focus: function(event, ui){
  				var data = $.extend({}, tree.ext.menu.data, {
  					menuItem: ui.item,
  					menuId: ui.item.find(">a").attr("href")
  				});
  				opts.menu.focus.call(tree, event, data);
  			},
  			select: function(event, ui){
  				var data = $.extend({}, tree.ext.menu.data, {
  					menuItem: ui.item,
  					menuId: ui.item.find(">a").attr("href")
  				});
  				if( opts.menu.select.call(tree, event, data) !== false){
  					tree.ext.menu._closeMenu(ctx);
  				}
  			}
  		}).hide();
  	}
docs: Override virtual methods for this extension. `this`       : is this extension object `this._base` : the Fancytree instance `this._super`: the virtual function that was overridden (member of prev. extension or Fancytree)