Skip to content

Commit

Permalink
Merge pull request #179 from maysale01/hotfix-fix-iterator-syntax-for…
Browse files Browse the repository at this point in the history
…-future-es-syntax

Hotfix: Missing variable declarations on iterators. This makes runn…
  • Loading branch information
gfosco committed Feb 2, 2016
2 parents 96609e3 + 52769cc commit f82122f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ExportAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ ExportAdapter.prototype.handleRelationUpdates = function(className,
}

if (op.__op == 'Batch') {
for (x of op.ops) {
for (var x of op.ops) {
process(x, key);
}
}
Expand Down
2 changes: 1 addition & 1 deletion RestQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ function includePath(config, auth, response, path) {
function findPointers(object, path) {
if (object instanceof Array) {
var answer = [];
for (x of object) {
for (var x of object) {
answer = answer.concat(findPointers(x, path));
}
return answer;
Expand Down
4 changes: 2 additions & 2 deletions spec/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function normalize(obj) {
return '[' + obj.map(normalize).join(', ') + ']';
}
var answer = '{';
for (key of Object.keys(obj).sort()) {
for (var key of Object.keys(obj).sort()) {
answer += key + ': ';
answer += normalize(obj[key]);
answer += ', ';
Expand Down Expand Up @@ -192,7 +192,7 @@ function mockFacebook() {

function clearData() {
var promises = [];
for (conn in DatabaseAdapter.dbConnections) {
for (var conn in DatabaseAdapter.dbConnections) {
promises.push(DatabaseAdapter.dbConnections[conn].deleteEverything());
}
return Promise.all(promises);
Expand Down

0 comments on commit f82122f

Please sign in to comment.