var defaultQueryOptions = {
useIndex: undefined,
keyRange: null,
direction: NEXT
};
This is used everytime even when instantiating a new QueryBuilder object at indexeddb.js line 432.
this.result = defaultQueryOptions;
So with two QueryBuilders, they will both share the same instance of this.result. Suggest wrapping defaultQueryOptions in a function that returns a new instance of that object.
First, make sure you create a new instance of QueryBuilder, e.g. myQuery = new QueryBuilder();You modify the default settings by applying your conditions, e.g.myQuery.$lt('20') set a lowerbound range.
indexeddb.js line 94.
This is used everytime even when instantiating a new QueryBuilder object at indexeddb.js line 432.
So with two QueryBuilders, they will both share the same instance of
this.result
. Suggest wrappingdefaultQueryOptions
in a function that returns a new instance of that object.