Skip to content

Commit

Permalink
Merge pull request #68 from chrisdothtml/feature/cjs-jquery
Browse files Browse the repository at this point in the history
Adding support for commonjs
  • Loading branch information
usmonster authored Feb 24, 2019
2 parents d23dc66 + 3a91802 commit 2771cb5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jquery.hoverIntent.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
'use strict';
if (typeof define === 'function' && define.amd) {
define(['jquery'], factory);
} else if (typeof module === 'object' && module.exports) {
module.exports = factory(require('jquery'));
} else if (jQuery && !jQuery.fn.hoverIntent) {
factory(jQuery);
}
Expand Down

0 comments on commit 2771cb5

Please sign in to comment.