no callback incase of a 304 notmodified status #8

Open
hamecoded opened this Issue Jan 24, 2012 · 0 comments

Comments

Projects
None yet
1 participant
@hamecoded

at the point where the jquery ajax call is made a 304 will return without calling the fn callback function [>getJSON]
this inturn will never reach the caller [>getData] at "if ( status == 'notmodified' ) {.."

I've added the following lines as a fix:
[line 71 - add] if(text=='notmodified'){ fn(undefined, text); }/ /=>Added by Oded
[line 152 - add] fn(json, status, data); //=>Added by Oded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment