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);