Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
todomvc
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
Eugene Shen
todomvc
Commits
afa8269f
Commit
afa8269f
authored
Feb 13, 2013
by
Brandon Satrom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove autoSync to prevent edit field propagation
parent
566d0d58
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
labs/architecture-examples/kendo/index.html
labs/architecture-examples/kendo/index.html
+1
-1
labs/architecture-examples/kendo/js/app.js
labs/architecture-examples/kendo/js/app.js
+4
-1
No files found.
labs/architecture-examples/kendo/index.html
View file @
afa8269f
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
</section>
</section>
<div
id=
"info"
>
<div
id=
"info"
>
<p>
Double-click to edit a todo
</p>
<p>
Double-click to edit a todo
</p>
<p>
Credits
<a
href=
"https://github.com/bsatrom"
>
Brandon Satrom
</a>
,
<a
href=
"https://github.com/burkeholland"
>
Burke Holland
</a>
&
nbs
p;
<a
href=
"https://github.com/akorchev"
>
Atanas Korchev
</a></p>
<p>
Credits
<a
href=
"https://github.com/bsatrom"
>
Brandon Satrom
</a>
,
<a
href=
"https://github.com/burkeholland"
>
Burke Holland
</a>
&
am
p;
<a
href=
"https://github.com/akorchev"
>
Atanas Korchev
</a></p>
<p>
Part of
<a
href=
"http://todomvc.com"
>
TodoMVC
</a></p>
<p>
Part of
<a
href=
"http://todomvc.com"
>
TodoMVC
</a></p>
</div>
</div>
<script
type=
"text/template"
id=
"item-template"
>
<script
type=
"text/template"
id=
"item-template"
>
...
...
labs/architecture-examples/kendo/js/app.js
View file @
afa8269f
...
@@ -43,7 +43,6 @@ var app = app || {};
...
@@ -43,7 +43,6 @@ var app = app || {};
// Implementation in js/lib/kendo.data.localstoragedatasource.ds
// Implementation in js/lib/kendo.data.localstoragedatasource.ds
app
.
todoData
=
new
kendo
.
data
.
extensions
.
LocalStorageDataSource
({
app
.
todoData
=
new
kendo
.
data
.
extensions
.
LocalStorageDataSource
({
itemBase
:
'
todos-kendo
'
,
itemBase
:
'
todos-kendo
'
,
autoSync
:
true
,
schema
:
{
schema
:
{
model
:
app
.
Todo
model
:
app
.
Todo
}
}
...
@@ -77,6 +76,7 @@ var app = app || {};
...
@@ -77,6 +76,7 @@ var app = app || {};
});
});
todos
.
add
(
todo
);
todos
.
add
(
todo
);
todos
.
sync
();
newTodo
.
val
(
''
);
newTodo
.
val
(
''
);
},
},
toggleAll
:
function
()
{
toggleAll
:
function
()
{
...
@@ -106,14 +106,17 @@ var app = app || {};
...
@@ -106,14 +106,17 @@ var app = app || {};
}
}
editData
.
set
(
'
edit
'
,
false
);
editData
.
set
(
'
edit
'
,
false
);
this
.
todos
.
sync
();
},
},
destroy
:
function
(
e
)
{
destroy
:
function
(
e
)
{
this
.
todos
.
remove
(
e
.
data
);
this
.
todos
.
remove
(
e
.
data
);
this
.
todos
.
sync
();
},
},
destroyCompleted
:
function
()
{
destroyCompleted
:
function
()
{
$
.
each
(
this
.
completedTodos
(),
function
(
index
,
value
)
{
$
.
each
(
this
.
completedTodos
(),
function
(
index
,
value
)
{
this
.
todos
.
remove
(
value
);
this
.
todos
.
remove
(
value
);
}.
bind
(
this
));
}.
bind
(
this
));
this
.
todos
.
sync
();
},
},
// Methods for retrieving filtered todos and count values
// Methods for retrieving filtered todos and count values
...
...
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