Skip to content

Commit f12dce3

Browse files
author
Konstantinos Vaggelakos
committed
Commonjs export fix and jshint updates
1 parent aeb793d commit f12dce3

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.jshintrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,8 @@
88
"nonbsp": true,
99
"trailing": true,
1010
"undef": true,
11-
"unused": true
11+
"unused": true,
12+
"globals": {
13+
"module": true
14+
}
1215
}

src/jquery.cookie.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
define(['jquery'], factory);
1212
} else if (typeof exports === 'object') {
1313
// CommonJS
14-
factory(require('jquery'));
14+
module.exports = factory(require('jquery'));
1515
} else {
1616
// Browser globals
1717
factory(jQuery);

0 commit comments

Comments
 (0)