jupiterjs/canjs — pull request #32 by verto (2012-04-17 01:39:25+00:00)
Title: fix return of identity hash in the destroy method

Scenario:

var Todo = can.Model({
destroy : "/todos/{id}",
},{});

todo = new Todo({id: 1});
todo.destroy();

The problem occurs because the return of identity hash into AjaxMethods.destroy return only id. so, when ajax method tries to fill values in the url, the id is filled with undefined value.