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