From d1885fbab6b029eac3f08f79063c8f63ef08d44a Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 15 Feb 2016 15:42:08 +0100 Subject: [PATCH] better jshint compliance for common files --- www/common/hyperjson.js | 2 +- www/common/rainbow.js | 2 +- www/common/realtime-input.js | 4 ++-- www/common/sharejs_textarea.js | 6 ++++-- www/common/treesome.js | 15 +++++++++------ 5 files changed, 17 insertions(+), 12 deletions(-) diff --git a/www/common/hyperjson.js b/www/common/hyperjson.js index 991317a66..db6d3f20f 100644 --- a/www/common/hyperjson.js +++ b/www/common/hyperjson.js @@ -52,7 +52,7 @@ define([], function () { for(;i < el.attributes.length; i++){ var attr = el.attributes[i]; if(attr.name && attr.value){ - if(attr.name == "style"){ + if(attr.name === "style"){ attributes.style = parseStyle(el); } else{ diff --git a/www/common/rainbow.js b/www/common/rainbow.js index 843755cf2..6aa732c4e 100644 --- a/www/common/rainbow.js +++ b/www/common/rainbow.js @@ -6,7 +6,7 @@ define([], function () { t = [], rgb = [0,2,4]; - while(i