miguel-perez/smoothState.js

Ajax success method issue

Open

#229 建立於 2015年11月5日

在 GitHub 查看
 (4 留言) (1 反應) (0 負責人)CSS (4,433 star) (515 fork)batch import
bughelp wanted

描述

Hello,

My implementation has been choking on line 375 letting me know that $.ajax(settings).success(...) is not a function. After researching it seems that the success / error / complete callbacks can be defined in the settings object but there is no such function, the closest being done().

So I changed the source code to settings.success = function(...) and the same for error and complete, before calling $.ajax(settings).

It seems to be working. But not being a developper I'm not really sure that would be the appropriate fix...

貢獻者指南