Fixed JavaScript "space-infix-ops" violations.

This commit is contained in:
Tim Graham 2015-07-17 12:00:39 -04:00
parent ec6563f585
commit efc144aba0
10 changed files with 52 additions and 56 deletions

View File

@ -36,10 +36,7 @@
], ],
"space-before-blocks": [2, "always"], "space-before-blocks": [2, "always"],
"space-before-function-paren": [2, {"anonymous": "never", "named": "never"}], "space-before-function-paren": [2, {"anonymous": "never", "named": "never"}],
"space-infix-ops": [ "space-infix-ops": [2, {"int32Hint": false}],
1,
{"int32Hint": false}
],
"strict": [1, "function"] "strict": [1, "function"]
}, },
"env": { "env": {

View File

@ -112,8 +112,7 @@
var updateElementCallback = function() { var updateElementCallback = function() {
updateElementIndex(this, options.prefix, i); updateElementIndex(this, options.prefix, i);
}; };
for (i=0, formCount=forms.length; i<formCount; i++) for (i = 0, formCount = forms.length; i < formCount; i++) {
{
updateElementIndex($(forms).get(i), options.prefix, i); updateElementIndex($(forms).get(i), options.prefix, i);
$(forms.get(i)).find("*").each(updateElementCallback); $(forms.get(i)).find("*").each(updateElementCallback);
} }