eslint: change quote-props from off to error and fix violations.

This commit is contained in:
AZtheAsian
2016-12-02 19:08:47 -07:00
committed by Tim Abbott
parent 1923045ca6
commit 5e9918135b
33 changed files with 199 additions and 198 deletions

View File

@@ -188,10 +188,10 @@ var fake_messages = [
];
function send_delayed_stream_message(stream, topic, content, delay) {
var data = {'type': JSON.stringify('stream'),
'recipient': JSON.stringify(stream),
'topic': JSON.stringify(topic),
'content': JSON.stringify(content)};
var data = {type: JSON.stringify('stream'),
recipient: JSON.stringify(stream),
topic: JSON.stringify(topic),
content: JSON.stringify(content)};
setTimeout(function () {
$.ajax({
dataType: 'json',
@@ -203,7 +203,7 @@ function send_delayed_stream_message(stream, topic, content, delay) {
}
function disable_event_handlers() {
$('body').css({'overflow':'hidden'}); // prevents scrolling the feed
$('body').css({overflow:'hidden'}); // prevents scrolling the feed
_.each(["keydown", "keyup", "keypress", "scroll"], function (event_name) {
var existing_events = $._data(document, "events")[event_name];
if (existing_events === undefined) {
@@ -215,7 +215,7 @@ function disable_event_handlers() {
}
function enable_event_handlers() {
$('body').css({'overflow':'auto'}); // enables scrolling the feed
$('body').css({overflow:'auto'}); // enables scrolling the feed
_.each(["keydown", "keyup", "keypress", "scroll"], function (event_name) {
$._data(document, "events")[event_name] = event_handlers[event_name];
});