Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

avoiding re-declaring var each iteration through loop.

  • Loading branch information...
commit 1769f6260c650f38d6d87674b0a6eee97cddf5f3 1 parent e2a71aa
@thynctank authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 storage.js
View
5 storage.js
@@ -53,7 +53,8 @@ Storage.prototype = {
sqlParts = [],
condition,
operator,
- operand;
+ operand,
+ element;
if(!conditions)
return conditionSql;
@@ -71,7 +72,7 @@ Storage.prototype = {
}
else if(operand.constructor === Array) {
for(i = 0, j = operand.length; i < j; i++) {
- var element = operand[i];
+ element = operand[i];
if(typeof element === "string")
operand[i] = this._escapeString(element);
}
Please sign in to comment.
Something went wrong with that request. Please try again.