jacomyal / djax

A lightweight subset of jQuery.ajax
MIT License
8 stars 1 forks source link

complete handler #9

Open stevenvachon opened 8 years ago

stevenvachon commented 8 years ago

It's never called! This is pretty important.

djax({
  url: action,
  data: data,
  success: function(data){},
  error: function(data){},
  complete: function(){}
});
stevenvachon commented 8 years ago

I started doing it but I'm sick of it, heh. always() and complete supply different arguments.