Skip to content

Commit

Permalink
Merge pull request kemayo#66 from mmassing/master
Browse files Browse the repository at this point in the history
- Make plugin AMD compatible
  • Loading branch information
kemayo committed Nov 28, 2015
2 parents 3de5d2c + a33fccd commit 2c4cac1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions jquery.maphilight.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
(function($) {
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
define(['jquery'], factory);
} else {
factory(root.jQuery);
}
})(this, function($) {
var has_VML, has_canvas, create_canvas_for, add_shape_to, clear_canvas, shape_from_area,
canvas_style, hex_to_decimal, css3color, is_image_loaded, options_from_area;

Expand Down Expand Up @@ -357,4 +363,4 @@
shadowPosition: 'outside',
shadowFrom: false
};
})(jQuery);
});
4 changes: 2 additions & 2 deletions jquery.maphilight.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2c4cac1

Please sign in to comment.