Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
jio_mebibou
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Alexandra Rogova
jio_mebibou
Commits
054e9fc8
Commit
054e9fc8
authored
Aug 13, 2013
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jio.js updated
parent
4b2588af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
jio.js
jio.js
+2
-3
No files found.
jio.js
View file @
054e9fc8
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
return
localStorage
.
setItem
(
item
,
JSON
.
stringify
(
value
));
return
localStorage
.
setItem
(
item
,
JSON
.
stringify
(
value
));
},
},
removeItem
:
function
(
item
)
{
removeItem
:
function
(
item
)
{
delete
localStorage
[
item
]
;
return
localStorage
.
removeItem
(
item
)
;
},
},
clone
:
function
()
{
clone
:
function
()
{
return
JSON
.
parse
(
JSON
.
stringify
(
localStorage
));
return
JSON
.
parse
(
JSON
.
stringify
(
localStorage
));
...
@@ -41,8 +41,7 @@
...
@@ -41,8 +41,7 @@
localstorage
=
{
localstorage
=
{
getItem
:
function
(
item
)
{
getItem
:
function
(
item
)
{
var
value
=
pseudo_localStorage
[
item
];
var
value
=
pseudo_localStorage
[
item
];
return
value
===
undefined
?
return
value
===
undefined
?
null
:
JSON
.
parse
(
value
);
null
:
JSON
.
parse
(
pseudo_localStorage
[
item
]);
},
},
setItem
:
function
(
item
,
value
)
{
setItem
:
function
(
item
,
value
)
{
pseudo_localStorage
[
item
]
=
JSON
.
stringify
(
value
);
pseudo_localStorage
[
item
]
=
JSON
.
stringify
(
value
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment