Hi i am using this kill function in my application, here I am calling kill function inside a for loop each time it will return d for each iteration
but some times I am getting d value before it is completion of d.done() and after returning d it is calling d.done() could any body please suggest me which concept i have to use here
kill: function() {
var t = this
, url = "My URL"//App.Data.url('user', p.get('id'), 'dissociate_tag', id)
, d = _.http.del(url);
d.done(function() {
t.resetTile();
t.set('killed', true);
});
return d;
}