Expense-Tracker

 view release on metacpan or  search on metacpan

GitLog  view on Meta::CPAN

  Change: 2bd0e72d1149b033b8ad9d42151630fb6d42afa9
  Author: Tudor Constantin <tudorconstantin@gmail.com>
  Date : 2012-07-09 00:39:58 +0000

    generic method for getting a resource 

  Change: 274137bfe1e2b49a199b4f6a2be69019aa323535
  Author: Tudor Constantin <tudorconstantin@gmail.com>
  Date : 2012-07-09 00:28:23 +0000

    basic infrastructure created for API endpoints 

  Change: e6eb43b478630acea753e8d72dc93c6c2a933181
  Author: Tudor Constantin <tudorconstantin@gmail.com>
  Date : 2012-07-08 21:49:07 +0000

    added generic routes to resources 

  Change: d027d4e4b0ceb541b8cbfc0377f71484817cdc5f
  Author: Tudor Constantin <tudorconstantin@gmail.com>
  Date : 2012-07-08 19:58:47 +0000

public/javascripts/vendor/backbone/backbone.js  view on Meta::CPAN

        }
      };

      options.error = Backbone.wrapError(options.error, model, options);
      var xhr = (this.sync || Backbone.sync).call(this, 'delete', this, options);
      if (!options.wait) triggerDestroy();
      return xhr;
    },

    // Default URL for the model's representation on the server -- if you're
    // using Backbone's restful methods, override this to change the endpoint
    // that will be called.
    url: function() {
      var base = getValue(this, 'urlRoot') || getValue(this.collection, 'url') || urlError();
      if (this.isNew()) return base;
      return base + (base.charAt(base.length - 1) == '/' ? '' : '/') + encodeURIComponent(this.id);
    },

    // **parse** converts a response into the hash of attributes to be `set` on
    // the model. The default implementation is just to pass the response along.
    parse: function(resp, xhr) {



( run in 0.497 second using v1.01-cache-2.11-cpan-2b1a40005be )