diff --git a/.jshintrc b/.jshintrc index c1260897..8c8a75fa 100644 --- a/.jshintrc +++ b/.jshintrc @@ -1,5 +1,5 @@ { - "bitwise": false, + "bitwise": true, "curly": false, "eqeqeq": false, "forin": false, diff --git a/rhino_modules/jsdoc/tag/dictionary.js b/rhino_modules/jsdoc/tag/dictionary.js index 4f3c1651..18b1492a 100644 --- a/rhino_modules/jsdoc/tag/dictionary.js +++ b/rhino_modules/jsdoc/tag/dictionary.js @@ -52,7 +52,11 @@ var dictionary = { /** @function */ isNamespace: function(kind) { - return ( ~ _namespaces.indexOf(kind) ); + if ( _namespaces.indexOf(kind) !== -1) { + return true; + } + + return false; }, /** @function */ diff --git a/rhino_modules/jsdoc/tag/type.js b/rhino_modules/jsdoc/tag/type.js index 256cc5d4..d799bad9 100644 --- a/rhino_modules/jsdoc/tag/type.js +++ b/rhino_modules/jsdoc/tag/type.js @@ -82,7 +82,7 @@ function parseVariable(type) { function parseTypes(type) { var types = []; - if ( ~type.indexOf('|') ) { + if ( type.indexOf('|') !== -1 ) { // remove optional parens, like: { ( string | number ) } // see: http://code.google.com/closure/compiler/docs/js-for-compiler.html#types if ( /^\s*\(\s*(.+)\s*\)\s*$/.test(type) ) {