| 1 | define([ |
| 2 | "dojo/_base/declare", |
| 3 | "dojox/data/JsonRestStore", "dojox/data/util/JsonQuery", "dojox/data/ClientFilter", |
| 4 | "dojox/json/query" |
| 5 | ], function(declare, JsonRestStore, JsonQuery) { |
| 6 | |
| 7 | // summary: |
| 8 | // this is an extension of JsonRestStore to convert object attribute queries to |
| 9 | // JSONQuery/JSONPath syntax to be sent to the server. This also enables |
| 10 | // SONQuery/JSONPath queries to be performed locally if dojox.data.ClientFilter |
| 11 | // has been loaded |
| 12 | |
| 13 | return declare("dojox.data.JsonQueryRestStore",[JsonRestStore, JsonQuery],{ |
| 14 | matchesQuery: function(item,request){ |
| 15 | return item.__id && (item.__id.indexOf("#") == -1) && this.inherited(arguments); |
| 16 | } |
| 17 | }); |
| 18 | |
| 19 | |
| 20 | }); |