Browse files

just get first element not an array with the elements, breaks canvas …

…size
  • Loading branch information...
1 parent 9083129 commit b474b485a5a6af1247cfb743402d302610592e35 @frankroch frankroch committed Mar 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 jquery.maphilight.js
View
2 jquery.maphilight.js
@@ -298,7 +298,7 @@
area_options = options_from_area(this, options);
if(area_options.alwaysOn) {
if(!canvas_always && has_canvas) {
- canvas_always = create_canvas_for(img.get());
+ canvas_always = create_canvas_for(img.get(0));
$(canvas_always).css(canvas_style);
canvas_always.width = img.width();
canvas_always.height = img.height();

0 comments on commit b474b48

Please sign in to comment.