Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Commit

Permalink
1.4.5
Browse files Browse the repository at this point in the history
Changelog, browser version, version update in package.json
  • Loading branch information
markelog committed May 14, 2014
1 parent ebf8da8 commit 14f8ab5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
Version 1.4.5
* Hotfix: Fix binary rules for "," and "=" operators (@markelog)

Version 1.4.4
* Improve `requireSpaceAfterBinaryOperators` rule (@markelog)
* Improve `disallowSpaceAfterBinaryOperators` rule (@markelog)
Expand Down
8 changes: 4 additions & 4 deletions jscs-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,7 @@ module.exports.prototype = {
if (operators[','] || operators['=']) {
file.iterateTokensByType('Punctuator', function(token, i, tokens) {
var operator = token.value;
if (operator !== ',' && operator !== '=') {
if (operator !== ',' && operator !== '=' || !operators[operator]) {
return;
}

Expand Down Expand Up @@ -1193,7 +1193,7 @@ module.exports.prototype = {
if (operators[','] || operators['=']) {
file.iterateTokensByType('Punctuator', function(token, i, tokens) {
var operator = token.value;
if (operator !== ',' && operator !== '=') {
if (operator !== ',' && operator !== '=' || !operators[operator]) {
return;
}

Expand Down Expand Up @@ -2836,7 +2836,7 @@ module.exports.prototype = {
if (operators[','] || operators['=']) {
file.iterateTokensByType('Punctuator', function(token, i, tokens) {
var operator = token.value;
if (operator !== ',' && operator !== '=') {
if (operator !== ',' && operator !== '=' || !operators[operator]) {
return;
}

Expand Down Expand Up @@ -3017,7 +3017,7 @@ module.exports.prototype = {
if (operators[','] || operators['=']) {
file.iterateTokensByType('Punctuator', function(token, i, tokens) {
var operator = token.value;
if (operator !== ',' && operator !== '=') {
if (operator !== ',' && operator !== '=' || !operators[operator]) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"author": "Marat Dulin <[email protected]>",
"description": "JavaScript Code Style",
"name": "jscs",
"version": "1.4.4",
"version": "1.4.5",
"main": "lib/checker",
"homepage": "https://github.com/mdevils/node-jscs",
"license": "MIT",
Expand Down

0 comments on commit 14f8ab5

Please sign in to comment.