Test this on bl.ocks.org
AmplifyJS version 1.1.0. This example links to the raw source on github.
To Replicate:
xxxxxxxxxx
<html>
<head>
<title>Issues with latest AmplifyJS on Android 4.1 Jelly Bean</title>
</head>
<body>
<h1>Probable AmplifyJS storage bug</h1>
<p id="store">
Click here to store things
</p>
<p id="retrieve">
Retrieve
</p>
<script src="amplify.store.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script>
$(function() {
// Store a value
$('p#store').click(function() {
amplify.store('value', 5)
$(this).text("Stored the value '5' in 'value'")
});
// Retrieve a value from storage
$('p#retrieve').click(function() {
var retrieved = amplify.store('value');
$(this).text("Retrieved: " + retrieved);
});
});
</script>
</body>
</html>
https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js