src/hg/js/jquery.contextmenu.js 1.2

1.2 2009/08/13 17:19:04 larrym
pass event object to beforeShow callback
Index: src/hg/js/jquery.contextmenu.js
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/js/jquery.contextmenu.js,v
retrieving revision 1.1
retrieving revision 1.2
diff -b -B -U 4 -r1.1 -r1.2
--- src/hg/js/jquery.contextmenu.js	13 Aug 2009 17:18:16 -0000	1.1
+++ src/hg/js/jquery.contextmenu.js	13 Aug 2009 17:19:04 -0000	1.2
@@ -200,9 +200,9 @@
 		// Show the context menu
 		show: function(t,e) {
 			var cmenu=this, x=e.pageX, y=e.pageY;
 			cmenu.target = t; // Preserve the object that triggered this context menu so menu item click methods can see it
-			if (cmenu.beforeShow()!==false) {
+			if (cmenu.beforeShow(e)!==false) {
 				// If the menu content is a function, call it to populate the menu each time it is displayed
 				if (cmenu.menuFunction) {
 					if (cmenu.menu) { $(cmenu.menu).remove(); }
 					cmenu.menu = cmenu.createMenu(cmenu.menuFunction(cmenu,t),cmenu);