canjs / can-memory-store

Create an in-memory datastore that supports mongo-like queries
https://canjs.com/doc/can-memory-store.html
MIT License
2 stars 0 forks source link

Calling clear() doesn’t clear the entire cache #13

Closed chasenlehara closed 4 years ago

chasenlehara commented 4 years ago

I think this line: https://github.com/canjs/can-memory-store/blob/922e8962e44a4e6b304705867e47b2c768de8f49/can-memory-store.js#L14

Should be this instead:

this._queryData = [];