.jsbeautify

This commit is contained in:
psychobunny
2013-09-17 13:03:53 -04:00
parent cf889cfe25
commit 828d937dec
2 changed files with 54 additions and 36 deletions

17
.jsbeautifyrc Normal file
View File

@@ -0,0 +1,17 @@
{
"indent_size": 4,
"indent_char": " ",
"indent_level": 0,
"indent_with_tabs": false,
"preserve_newlines": true,
"max_preserve_newlines": 10,
"jslint_happy": false,
"brace_style": "collapse",
"keep_array_indentation": false,
"keep_function_indentation": false,
"space_before_conditional": true,
"break_chained_methods": false,
"eval_code": false,
"unescape_strings": false,
"wrap_line_length": 0
}

View File

@@ -43,7 +43,9 @@ var socket,
}, 1000);
reconnecting = false;
reconnectTries = 0;
socket.emit('api:updateHeader', { fields: ['username', 'picture', 'userslug'] });
socket.emit('api:updateHeader', {
fields: ['username', 'picture', 'userslug']
});
}
});
@@ -165,8 +167,7 @@ var socket,
clearTimeout(alert.attr('timeoutId'));
startTimeout(alert, params.timeout);
}
else {
} else {
var div = document.createElement('div'),
button = document.createElement('button'),
strong = document.createElement('strong'),