Skip to content

Commit 009b70d

Browse files
hansonrhansonr
authored andcommitted
final menus tweak -- no outjmol binding
1 parent 8a1af7e commit 009b70d

File tree

1 file changed

+6
-6
lines changed
  • sources/net.sf.j2s.java.core/src/swingjs/jquery

1 file changed

+6
-6
lines changed

sources/net.sf.j2s.java.core/src/swingjs/jquery/j2sMenu.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -255,12 +255,12 @@ Swing.showMenu = function(menu, x, y) {
255255
menu._visible = true;
256256
menu.timestamp = System.currentTimeMillis$();
257257
menu.dragBind(true);
258-
menu.$ulTop.unbind('clickoutjsmol mousemoveoutjsmol');
259-
if (!J2S._persistentMenu)
260-
menu.$ulTop.bind('clickoutjsmol mousemoveoutjsmol', function(evspecial, target, ev) {
261-
if (System.currentTimeMillis$() - menu.timestamp > 500)
262-
Swing.hideMenu(menu);
263-
});
258+
// menu.$ulTop.unbind('clickoutjsmol mousemoveoutjsmol');
259+
// if (!J2S._persistentMenu)
260+
// menu.$ulTop.bind('clickoutjsmol mousemoveoutjsmol', function(evspecial, target, ev) {
261+
// if (System.currentTimeMillis$() - menu.timestamp > 500)
262+
// Swing.hideMenu(menu);
263+
// });
264264
menu.$ulTop.bind("contextmenu", function() {return false;});
265265
}
266266

0 commit comments

Comments
 (0)