Skip to content

no callback incase of a 304 notmodified status #8

@hamecoded

Description

@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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions