Permalink
Browse files

Performance change

alwaysOn event was firing for all areas, instead of just for the map
  • Loading branch information...
1 parent 816406e commit acb9d4b1df8a75da221982f86c34193a5470b6b8 @kemayo committed Jan 11, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 jquery.maphilight.js
View
@@ -236,8 +236,7 @@
if(options.alwaysOn) {
$(map).find('area[coords]').each(mouseover);
} else {
- $(map).find('area[coords]')
- .trigger('alwaysOn.maphilight')
+ $(map).trigger('alwaysOn.maphilight').find('area[coords]')
.bind('mouseover.maphilight', mouseover)
.bind('mouseout.maphilight', function(e) { clear_canvas(canvas); });
}

0 comments on commit acb9d4b

Please sign in to comment.