JSHint - Use Strict Global Problem

We have a global object called PRIDE that is defined in common.js as:

if(!PRIDE) var PRIDE = {};

However, because it's global and we are using JSHint and Use Strict, I have to add ito the Global in PHPStorm settings. Now, when I get an error message about PRIDE being "redefined."

0

This thing is so darn buggy. One time I add a global variable it works, then when I mess with other stuff and take those changes out, now that same global variable doesn't work.

0

请先登录再写评论。