Skip to content

Commit b1a17df

Browse files
committed
Merge pull request #2 from ParsePlatform/stanleyw.fix_double_equals
Fix double equals that should be triple equals
2 parents a888b74 + 2b50954 commit b1a17df

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ObjectState.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ export function commitServerChanges(className: string, id: string, changes: Attr
200200
var val = changes[attr];
201201
state.serverData[attr] = val;
202202
if (val &&
203-
typeof val == 'object' &&
203+
typeof val === 'object' &&
204204
!(val instanceof ParseObject) &&
205205
!(val instanceof ParseFile) &&
206206
!(val instanceof ParseRelation)

src/ParseObject.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1136,7 +1136,7 @@ export default class ParseObject {
11361136
* // If this is an aggregate error, then we can inspect each error
11371137
* // object individually to determine the reason why a particular
11381138
* // object was not deleted.
1139-
* if (error.code == Parse.Error.AGGREGATE_ERROR) {
1139+
* if (error.code === Parse.Error.AGGREGATE_ERROR) {
11401140
* for (var i = 0; i < error.errors.length; i++) {
11411141
* console.log("Couldn't delete " + error.errors[i].object.id +
11421142
* "due to " + error.errors[i].message);

0 commit comments

Comments
 (0)