We encountered a bug where an instance of a CachedResource that was instantiated from reading out of the cache had $promise and $httpPromise properties that were later getting serialized to localStorage. In an offline scenario, reading from the cache would then return an empty object because the real deferred objects would get blown away by the improperly serialized promises.
This PR omits these properties before writing to them to localStorage.
We encountered a bug where an instance of a CachedResource that was instantiated from reading out of the cache had
$promise
and$httpPromise
properties that were later getting serialized to localStorage. In an offline scenario, reading from the cache would then return an empty object because the real deferred objects would get blown away by the improperly serialized promises.This PR omits these properties before writing to them to localStorage.