You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you can't load the test data up front (so that you synchronously return them when the handler is invoked) I would suggest that you don't use BFS for this but rather override the relevant model's sync method to do the job. Something along the lines of
myModel.sync=function(method,model,options){if(method!=='read'){throw'this will only work for GET';}return$.getJSON('mock\test-data.json',function(data){options.success(data);});};
Couldn't find much documenation for handler method. Any help would be appreciated
The text was updated successfully, but these errors were encountered: