Skip to content

Commit

Permalink
Performance issue with action menus
Browse files Browse the repository at this point in the history
  • Loading branch information
cezarsa committed Oct 17, 2010
1 parent d8744bf commit 5dd6546
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/action_menu.js
Expand Up @@ -48,6 +48,9 @@ $('#trigger').actionMenu({
};

$.actionMenu.init = function() {
if(initialized) {
return;
}
initialized = true;
document.addEventListener('mouseup', function() {
for(var i = 0, len = existingActionMenus.length; i < len; ++i) {
Expand Down

0 comments on commit 5dd6546

Please sign in to comment.