miguel-perez/smoothState.js

Ajax success method issue

Open

#229 ouverte le 5 nov. 2015

Voir sur GitHub
 (4 commentaires) (1 réaction) (0 assignés)CSS (515 forks)batch import
bughelp wanted

Métriques du dépôt

Stars
 (4 433 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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...

Guide contributeur