Skip to content

Commit e02cad1

Browse files
Lucian MateescuLucian Mateescu
authored andcommitted
Merge remote-tracking branch 'upstream/master'
2 parents 5e0c30d + f82122f commit e02cad1

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

ExportAdapter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ ExportAdapter.prototype.handleRelationUpdates = function(className,
245245
}
246246

247247
if (op.__op == 'Batch') {
248-
for (x of op.ops) {
248+
for (var x of op.ops) {
249249
process(x, key);
250250
}
251251
}

RestQuery.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ function includePath(config, auth, response, path) {
434434
function findPointers(object, path) {
435435
if (object instanceof Array) {
436436
var answer = [];
437-
for (x of object) {
437+
for (var x of object) {
438438
answer = answer.concat(findPointers(x, path));
439439
}
440440
return answer;

RestWrite.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ RestWrite.prototype.handleFollowup = function() {
363363
};
364364
delete this.storage['clearSessions'];
365365
return this.config.database.destroy('_Session', sessionQuery)
366-
.then(this.handleFollowup);
366+
.then(this.handleFollowup.bind(this));
367367
}
368368
};
369369

spec/helper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ function normalize(obj) {
153153
return '[' + obj.map(normalize).join(', ') + ']';
154154
}
155155
var answer = '{';
156-
for (key of Object.keys(obj).sort()) {
156+
for (var key of Object.keys(obj).sort()) {
157157
answer += key + ': ';
158158
answer += normalize(obj[key]);
159159
answer += ', ';
@@ -192,7 +192,7 @@ function mockFacebook() {
192192

193193
function clearData() {
194194
var promises = [];
195-
for (conn in DatabaseAdapter.dbConnections) {
195+
for (var conn in DatabaseAdapter.dbConnections) {
196196
promises.push(DatabaseAdapter.dbConnections[conn].deleteEverything());
197197
}
198198
return Promise.all(promises);

0 commit comments

Comments
 (0)