Skip to content

Commit bea9f51

Browse files
Assume "escape" is available anywhere in the source files
Any source (src) file is meant to be run in a JS engine. We know that any JS engine has the "escape" global function, so can safely assume that all source files will have that global available.
1 parent dfd44aa commit bea9f51

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/.jshintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"globals": {
66
"define": true,
77
"module": true,
8-
"require": true
8+
"require": true,
9+
"escape": true
910
},
1011

1112
"extends": "../.jshintrc"

src/js.cookie.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/*global escape: true */
21
/*!
32
* Javascript Cookie v2.0.0-pre
43
* https://github.com/js-cookie/js-cookie

0 commit comments

Comments
 (0)