DoneJS StealJS jQuery ++ FuncUnit DocumentJS
3.0.0
2.3.27

 

  • Github
  • Twitter
  • Chat
  • Forum
  • Bitovi
    • Bitovi.com
    • Blog
    • Consulting
    • Training
    • Open Source
  • Chat
  • Forum
  • Star
  • Follow @canjs
  • fixture.types.Store.findOne
  • / On this page
    • fixture.types.Store.findOne

      function

      Simulate a findOne request on a fixture.

      • source

      store.findOne(request, response)

      Parameters

      1. request {Object}:

        Parameters for the request.

      2. response {function}:

        A function to call with the retrieved item.

      store.findOne(request, response(item)) simulates a request to get a single item from the server by id.

      todosStore.findOne({
        url: "/todos/5"
      }, function(todo){
      
      });
      

      CanJS is part of DoneJS. Created and maintained by the core DoneJS team and Bitovi. Currently 3.0.0.