maccman / spine.todos

A Backbone alternative idea

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect model method call

CaptainQuirk opened this issue · comments

In the TasksController, the remove function causes an error because this.destroy() doesn't exist. Replacing it with this.item.destroy causes an infinite loop. I left the line out and it worked for me

remove: function(){
    this.el.remove();
    this.destroy();
 }

Fixed in #842f4bd - changed to this.release()