Commit 76b8987a6426f9729ca5b7d6c4bb1f1d1b9a5f21
1 parent
043f0b2901
Exists in
master
Update created and rendered callbacks to use new onCreated and onRendered syntax.
Closes #42.
Showing
5 changed files
with
20 additions
and
20 deletions
Show diff stats
client/controllers/authenticated/header.js
... | ... | @@ -7,17 +7,17 @@ |
7 | 7 | * Created |
8 | 8 | */ |
9 | 9 | |
10 | -Template.header.created = function(){ | |
10 | +Template.header.onCreated(function(){ | |
11 | 11 | // Code to run when template is created goes here. |
12 | -} | |
12 | +}); | |
13 | 13 | |
14 | 14 | /* |
15 | 15 | * Rendered |
16 | 16 | */ |
17 | 17 | |
18 | -Template.header.rendered = function() { | |
18 | +Template.header.onRendered(function() { | |
19 | 19 | // Code to run when template is rendered goes here. |
20 | -} | |
20 | +}); | |
21 | 21 | |
22 | 22 | /* |
23 | 23 | * Helpers | ... | ... |
client/controllers/public/login.js
... | ... | @@ -7,15 +7,15 @@ |
7 | 7 | * Created |
8 | 8 | */ |
9 | 9 | |
10 | -Template.login.created = function(){ | |
10 | +Template.login.onCreated(function(){ | |
11 | 11 | // Code to run when template is created goes here. |
12 | -} | |
12 | +}); | |
13 | 13 | |
14 | 14 | /* |
15 | 15 | * Rendered |
16 | 16 | */ |
17 | 17 | |
18 | -Template.login.rendered = function(){ | |
18 | +Template.login.onRendered(function(){ | |
19 | 19 | $('#application-login').validate({ |
20 | 20 | rules: { |
21 | 21 | emailAddress: { |
... | ... | @@ -52,7 +52,7 @@ Template.login.rendered = function(){ |
52 | 52 | }); |
53 | 53 | } |
54 | 54 | }); |
55 | -} | |
55 | +}); | |
56 | 56 | |
57 | 57 | /* |
58 | 58 | * Helpers | ... | ... |
client/controllers/public/recover-password.js
... | ... | @@ -7,16 +7,16 @@ |
7 | 7 | * Created |
8 | 8 | */ |
9 | 9 | |
10 | -Template.recoverPassword.created = function(){ | |
10 | +Template.recoverPassword.onCreated(function(){ | |
11 | 11 | // Code to run when template is created goes here. |
12 | -} | |
12 | +}); | |
13 | 13 | |
14 | 14 | /* |
15 | 15 | * Rendered |
16 | 16 | */ |
17 | 17 | |
18 | 18 | |
19 | -Template.recoverPassword.rendered = function(){ | |
19 | +Template.recoverPassword.onRendered(function(){ | |
20 | 20 | $('#application-recover-password').validate({ |
21 | 21 | rules: { |
22 | 22 | emailAddress: { |
... | ... | @@ -44,7 +44,7 @@ Template.recoverPassword.rendered = function(){ |
44 | 44 | }); |
45 | 45 | } |
46 | 46 | }); |
47 | -} | |
47 | +}); | |
48 | 48 | |
49 | 49 | /* |
50 | 50 | * Helpers | ... | ... |
client/controllers/public/reset-password.js
... | ... | @@ -7,15 +7,15 @@ |
7 | 7 | * Created |
8 | 8 | */ |
9 | 9 | |
10 | -Template.resetPassword.created = function(){ | |
10 | +Template.resetPassword.onCreated(function(){ | |
11 | 11 | // Code to run when template is created goes here. |
12 | -} | |
12 | +}); | |
13 | 13 | |
14 | 14 | /* |
15 | 15 | * Rendered |
16 | 16 | */ |
17 | 17 | |
18 | -Template.resetPassword.rendered = function(){ | |
18 | +Template.resetPassword.onRendered(function(){ | |
19 | 19 | $('#application-reset-password').validate({ |
20 | 20 | rules: { |
21 | 21 | newPassword: { |
... | ... | @@ -54,7 +54,7 @@ Template.resetPassword.rendered = function(){ |
54 | 54 | }); |
55 | 55 | } |
56 | 56 | }); |
57 | -} | |
57 | +}); | |
58 | 58 | |
59 | 59 | /* |
60 | 60 | * Helpers | ... | ... |
client/controllers/public/signup.js
... | ... | @@ -7,15 +7,15 @@ |
7 | 7 | * Created |
8 | 8 | */ |
9 | 9 | |
10 | -Template.signup.created = function(){ | |
10 | +Template.signup.onCreated(function(){ | |
11 | 11 | // Code to run when template is created goes here. |
12 | -} | |
12 | +}); | |
13 | 13 | |
14 | 14 | /* |
15 | 15 | * Rendered |
16 | 16 | */ |
17 | 17 | |
18 | -Template.signup.rendered = function(){ | |
18 | +Template.signup.onRendered(function(){ | |
19 | 19 | $('#application-signup').validate({ |
20 | 20 | rules: { |
21 | 21 | emailAddress: { |
... | ... | @@ -54,7 +54,7 @@ Template.signup.rendered = function(){ |
54 | 54 | }); |
55 | 55 | } |
56 | 56 | }); |
57 | -} | |
57 | +}); | |
58 | 58 | |
59 | 59 | /* |
60 | 60 | * Helpers | ... | ... |