source: Dev/branches/rest-dojo-ui/client/dojox/data/JsonQueryRestStore.js @ 256

Last change on this file since 256 was 256, checked in by hendrikvanantwerpen, 13 years ago

Reworked project structure based on REST interaction and Dojo library. As
soon as this is stable, the old jQueryUI branch can be removed (it's
kept for reference).

File size: 680 bytes
Line 
1define(["dojo", "dojox", "dojox/data/JsonRestStore", "dojox/data/util/JsonQuery", "dojox/data/ClientFilter", "dojox/json/query"], function(dojo, dojox) {
2
3// this is an extension of JsonRestStore to convert object attribute queries to
4// JSONQuery/JSONPath syntax to be sent to the server. This also enables
5//      JSONQuery/JSONPath queries to be performed locally if dojox.data.ClientFilter
6//      has been loaded
7dojo.declare("dojox.data.JsonQueryRestStore",[dojox.data.JsonRestStore,dojox.data.util.JsonQuery],{
8        matchesQuery: function(item,request){
9                return item.__id && (item.__id.indexOf("#") == -1) && this.inherited(arguments);
10        }
11});
12
13return dojox.data.JsonQueryRestStore;
14});
Note: See TracBrowser for help on using the repository browser.