CommonJS compatibility
This commit is contained in:
parent
b45a94971c
commit
fc24bbc631
@ -6,6 +6,9 @@
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define(['jquery'], factory);
|
||||
} else if (typeof exports === 'object') {
|
||||
// Node/CommonJS
|
||||
factory(require('jquery'));
|
||||
} else {
|
||||
// Browser globals
|
||||
factory(jQuery);
|
||||
|
Loading…
Reference in New Issue
Block a user