diff --git a/jquery.hoverIntent.js b/jquery.hoverIntent.js index 4d905fb..56b357e 100644 --- a/jquery.hoverIntent.js +++ b/jquery.hoverIntent.js @@ -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); }