Minor JS code improvments
This commit is contained in:
parent
3c4cd3aea7
commit
bbad92a161
2 changed files with 5 additions and 3 deletions
|
@ -9,6 +9,9 @@ env:
|
|||
jquery: true
|
||||
node: true
|
||||
|
||||
globals:
|
||||
sjcl: false
|
||||
|
||||
# http://eslint.org/docs/rules/
|
||||
rules:
|
||||
# Possible Errors
|
||||
|
@ -52,7 +55,7 @@ rules:
|
|||
dot-notation: 0
|
||||
eqeqeq: 2
|
||||
guard-for-in: 2
|
||||
no-alert: 2
|
||||
no-alert: 0
|
||||
no-caller: 2
|
||||
no-case-declarations: 2
|
||||
no-div-regex: 2
|
||||
|
|
|
@ -72,7 +72,7 @@ $(function() {
|
|||
hashToParameterString: function(associativeArray)
|
||||
{
|
||||
var parameterString = '';
|
||||
for (key in associativeArray)
|
||||
for (var key in associativeArray)
|
||||
{
|
||||
if(parameterString === '')
|
||||
{
|
||||
|
@ -1462,4 +1462,3 @@ $(function() {
|
|||
*/
|
||||
i18n.loadTranslations($.proxy(privatebin.init, privatebin));
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue