Advertisement
Guest User

Untitled

a guest
Dec 28th, 2014
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. start: function() {
  2. Backbone.history.start({pushState: true});
  3. },
  4. initialize: function() {
  5. $.ajaxPrefilter( function( options, originalOptions, jqXHR ) {
  6. options.url = options.url;
  7. });
  8. }
  9.  
  10. var _wl = new MyModel();
  11. _wl.save(_item,{
  12. success: function(res) {
  13. console.log(res);
  14. }
  15. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement