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
Sven Franck
todomvc
Commits
860bc462
Commit
860bc462
authored
Jan 27, 2014
by
Marc-Andre Lafortune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update meteor
parent
81581d7f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
labs/architecture-examples/meteor/.meteor/packages
labs/architecture-examples/meteor/.meteor/packages
+1
-1
labs/architecture-examples/meteor/.meteor/release
labs/architecture-examples/meteor/.meteor/release
+1
-1
labs/architecture-examples/meteor/app.js
labs/architecture-examples/meteor/app.js
+4
-4
No files found.
labs/architecture-examples/meteor/.meteor/packages
View file @
860bc462
standard-app-packages
labs/architecture-examples/meteor/.meteor/release
View file @
860bc462
0.
6.4
0.
7.0.1
labs/architecture-examples/meteor/app.js
View file @
860bc462
...
...
@@ -2,7 +2,7 @@
Todos
=
new
Meteor
.
Collection
(
'
todos
'
);
// JS code for the client (browser)
if
(
Meteor
.
is
_c
lient
)
{
if
(
Meteor
.
is
C
lient
)
{
// Session var to keep current filter type ("all", "active", "completed")
Session
.
set
(
'
filter
'
,
'
all
'
);
...
...
@@ -197,18 +197,18 @@ if (Meteor.is_client) {
}
//Publish and subscribe setting
if
(
Meteor
.
is
_s
erver
)
{
if
(
Meteor
.
is
S
erver
)
{
Meteor
.
publish
(
'
todos
'
,
function
()
{
return
Todos
.
find
();
});
}
if
(
Meteor
.
is
_c
lient
)
{
if
(
Meteor
.
is
C
lient
)
{
Meteor
.
subscribe
(
'
todos
'
);
}
//Allow users to write directly to this collection from client code, subject to limitations you define.
if
(
Meteor
.
is
_s
erver
)
{
if
(
Meteor
.
is
S
erver
)
{
Todos
.
allow
({
insert
:
function
()
{
return
true
;
...
...
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