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.destroy
  • / On this page
    • fixture.types.Store.destroy

      function

      Simulate destroying a Model on a fixture.

      • source

      store.destroy(request, callback)

      Parameters

      1. request {Object}:

        Parameters for the request.

      2. callback {function}:

        A function to call after destruction.

      store.destroy(request, response()) simulates a request to destroy an item from the server.

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

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