ibm mobilefirst - Worklight JsonStore Error When Using FireFox Developer Edition -


i'm developing mobile web app using eclipse / worklight v6.2. app uses local json store data storage. when run app using firefox v33.1 , clear json store function within app works expected. however, if use firefox developer edition v35.0a2 when invoke same function, local json store not cleared , following error:

"main :: localstoreclear :: attempting destroy json store..."         uncaught exception: typeerror: meta null @ (compiled_code):1751" worklight.js:4886         wl.logger</__log() worklight.js:4886         wl.logger</</public_api[priority]() worklight.js:5240         wl.logger</window.onerror() worklight.js:5202     typeerror: meta null jsonstore.js:1751 

this function within app calling:

/**  * destroy local json store , reinitialise  */ function localstoreclear() {     wl.logger.info("main :: localstoreclear :: attempting destroy json store...");        wl.jsonstore.destroy()     .then(function() {         wl.logger.info("main :: localstoreclear : destroyed!");          // reinitialise store         localstoreinit();     })     .fail(function() {         wl.logger.info("main :: localstoreclear : failed destroy!");     }); } 

from error message receive, looks error being thrown in jsonstore.js file? can tell me if i'm doing wrong, or if there compatibility issue between firefox developer edition , worklight?

many in advance,

chris.

answer:

firefox developer edition not supported browser. if encounter issue on supported browser, may want open pmr steps reproduce. may open feature request make browser supported browser.

workaround:

if don't mind removing inside html5 local storage, clear jsonstore saves when running in javascript-only environment (i.e. not android, ios, wp8 or win8):

localstorage.clear(); 

if want more selective, believe jsonstore html5 local storage keys prefixed jsonstore. can @ local storage following these steps here.

note: information above applies jsonstore code running on web browser.


Comments

Popular posts from this blog

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -