{"action":"created","issue":{"url":"https://api.github.com/repos/ga-dc/pbj-project4/issues/48","labels_url":"https://api.github.com/repos/ga-dc/pbj-project4/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/ga-dc/pbj-project4/issues/48/comments","events_url":"https://api.github.com/repos/ga-dc/pbj-project4/issues/48/events","html_url":"https://github.com/ga-dc/pbj-project4/issues/48","id":107048193,"number":48,"title":"jquery addClass is adding too many classes in iteration","user":{"login":"adrianshep","id":12960587,"avatar_url":"https://avatars.githubusercontent.com/u/12960587?v=3","gravatar_id":"","url":"https://api.github.com/users/adrianshep","html_url":"https://github.com/adrianshep","followers_url":"https://api.github.com/users/adrianshep/followers","following_url":"https://api.github.com/users/adrianshep/following{/other_user}","gists_url":"https://api.github.com/users/adrianshep/gists{/gist_id}","starred_url":"https://api.github.com/users/adrianshep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrianshep/subscriptions","organizations_url":"https://api.github.com/users/adrianshep/orgs","repos_url":"https://api.github.com/users/adrianshep/repos","events_url":"https://api.github.com/users/adrianshep/events{/privacy}","received_events_url":"https://api.github.com/users/adrianshep/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-09-17T18:47:46Z","updated_at":"2015-09-17T20:03:47Z","closed_at":null,"body":"Using .addClass to define font red, yellow and green status colors for li's. According to console, status color classes are initially added correctly, but then the iteration adds the other, inappropriate status color classes to most (but not all) of the li's. I cannot figure out why this is happening.\r\n\r\n```js\r\nfor (var i=0; i<$.csv.toObjects(response).length; i++) {\r\n  $('.kwslist').append(\"<li>\" + \"\" + ($.csv.toObjects(response)[i].Differential) + \" \" + ($.csv.toObjects(response)[i].Keyword) + \"</li>\");\r\n  if (parseFloat(($.csv.toObjects(response)[i].Differential)) > 1.10) {\r\n    $(\"li\").addClass(\"red\"); }\r\n  else if (parseFloat(($.csv.toObjects(response)[i].Differential)) > 0.90){\r\n    $(\"li\").addClass(\"yellow\");\r\n  }else{\r\n    $(\"li\").addClass(\"green\");\r\n  }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/ga-dc/pbj-project4/issues/comments/141209954","html_url":"https://github.com/ga-dc/pbj-project4/issues/48#issuecomment-141209954","issue_url":"https://api.github.com/repos/ga-dc/pbj-project4/issues/48","id":141209954,"user":{"login":"adrianshep","id":12960587,"avatar_url":"https://avatars.githubusercontent.com/u/12960587?v=3","gravatar_id":"","url":"https://api.github.com/users/adrianshep","html_url":"https://github.com/adrianshep","followers_url":"https://api.github.com/users/adrianshep/followers","following_url":"https://api.github.com/users/adrianshep/following{/other_user}","gists_url":"https://api.github.com/users/adrianshep/gists{/gist_id}","starred_url":"https://api.github.com/users/adrianshep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrianshep/subscriptions","organizations_url":"https://api.github.com/users/adrianshep/orgs","repos_url":"https://api.github.com/users/adrianshep/repos","events_url":"https://api.github.com/users/adrianshep/events{/privacy}","received_events_url":"https://api.github.com/users/adrianshep/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T20:03:47Z","updated_at":"2015-09-17T20:03:47Z","body":"I've run the iterations and examined the logs and am not seeing anything that's unexpected or could be read incorrectly."}}