wycats / jquery-offline Goto Github PK
View Code? Open in Web Editor NEWA jQuery plugin to facilitate conveniently working with local storage
A jQuery plugin to facilitate conveniently working with local storage
Scenario.
Result: Infinite loop.
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
but now most of them may be use the service worker, and Application Cache will seem to be abandon。As a context for this examination how can we handle the offline storage for http not https.
line 181 tests "if(text)" and incase no params are passed the text resolves to "null" as string, this inturn will enter the condition and an exception will be thrown.
I've replaced this line with:
if(text && text != "null")
This puts me back on track
Oded
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.