Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
react-vanilla
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Кубота
react-vanilla
Commits
0a837e59
Commit
0a837e59
authored
Dec 08, 2020
by
Иван Кубота
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
91ffa198
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Store.js
Store.js
+2
-2
No files found.
Store.js
View file @
0a837e59
...
@@ -448,7 +448,7 @@ Store.prototype = {
...
@@ -448,7 +448,7 @@ Store.prototype = {
},
},
sync
:
function
(
key
,
version
,
saveInterface
)
{
sync
:
function
(
key
,
version
,
saveInterface
)
{
saveInterface
=
saveInterface
||
Store
.
SaveInterface
.
LocalStorage
;
saveInterface
=
saveInterface
||
Store
.
SaveInterface
.
LocalStorage
;
var
iface
=
new
saveInterface
(
key
,
this
);
var
iface
=
new
saveInterface
(
key
,
this
)
,
_self
=
this
;
this
.
_props
.
_VERSION_
=
version
;
this
.
_props
.
_VERSION_
=
version
;
iface
.
load
(
function
(
err
,
data
)
{
iface
.
load
(
function
(
err
,
data
)
{
...
@@ -458,7 +458,7 @@ Store.prototype = {
...
@@ -458,7 +458,7 @@ Store.prototype = {
if
(
data
.
_VERSION_
>=
version
){
if
(
data
.
_VERSION_
>=
version
){
if
(
!
(
'_VERSION_'
in
data
)
||
data
.
_VERSION_
===
version
){
if
(
!
(
'_VERSION_'
in
data
)
||
data
.
_VERSION_
===
version
){
for
(
var
k
in
data
){
for
(
var
k
in
data
){
this
.
set
(
k
,
data
[
k
]
);
_self
.
set
(
k
,
data
[
k
]
);
}
}
}
}
}
else
{
}
else
{
...
...
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