jQuery throws an error when responding to findOne (findAll) with an error code like 404.
second argument to Function.prototype.apply must be an array
Tracked it down to the function pipe in model/model.js where .apply is used on rejectWith to set context.
arguments is something like
[jqXHR, "error", "Not Found"]
But rejectWith takes its first argument as the new context which is the jqXHR object in this case and then takes "error" as its args
Changed the function to use rejectWith and resolveWith without .apply
model: fixing pipe function
Great fix. Thank you!