Skip to content

Commit 77db696

Browse files
committed
Fixed _resetCacheForKey
1 parent e6ed8fc commit 77db696

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/object.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,11 +460,13 @@
460460
if (_.isObject(value) &&
461461
!(value instanceof AV.Object) &&
462462
!(value instanceof AV.File)) {
463+
463464
value = value.toJSON ? value.toJSON() : value;
464465
var json = JSON.stringify(value);
465466
if (this._hashedJSON[key] !== json) {
467+
var wasSet = !! this._hashedJSON[key];
466468
this._hashedJSON[key] = json;
467-
return true;
469+
return wasSet;
468470
}
469471
}
470472
return false;

0 commit comments

Comments
 (0)