From 2b5095413b47b7400d096b5a7fc8eed4ee831d8e Mon Sep 17 00:00:00 2001 From: Stanley Wang Date: Fri, 18 Sep 2015 11:27:35 -0700 Subject: [PATCH] Fix double equals that should be triple equals --- src/ObjectState.js | 2 +- src/ParseObject.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ObjectState.js b/src/ObjectState.js index d92792f60..e819cb589 100644 --- a/src/ObjectState.js +++ b/src/ObjectState.js @@ -200,7 +200,7 @@ export function commitServerChanges(className: string, id: string, changes: Attr var val = changes[attr]; state.serverData[attr] = val; if (val && - typeof val == 'object' && + typeof val === 'object' && !(val instanceof ParseObject) && !(val instanceof ParseFile) && !(val instanceof ParseRelation) diff --git a/src/ParseObject.js b/src/ParseObject.js index 4c36bf7df..c734c39cf 100644 --- a/src/ParseObject.js +++ b/src/ParseObject.js @@ -1136,7 +1136,7 @@ export default class ParseObject { * // If this is an aggregate error, then we can inspect each error * // object individually to determine the reason why a particular * // object was not deleted. - * if (error.code == Parse.Error.AGGREGATE_ERROR) { + * if (error.code === Parse.Error.AGGREGATE_ERROR) { * for (var i = 0; i < error.errors.length; i++) { * console.log("Couldn't delete " + error.errors[i].object.id + * "due to " + error.errors[i].message);