From 1dbe50ede2c9a5e96d17964161fec1d8b6c9103a Mon Sep 17 00:00:00 2001 From: Keenan Lidral-Porter Date: Sun, 7 Dec 2014 15:33:37 -0800 Subject: [PATCH] remove unecessary function.bind call (artifact from old codebase) --- docs/getting-started.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/getting-started.md b/docs/getting-started.md index db3d4135..84760ade 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -334,10 +334,10 @@ vm.add = function() { vm.list.push(new todo.Todo({description: vm.description()})); vm.description(""); } -}.bind(this); +}; ``` -The difference with the modified version is that `add` no longer takes an argument, and we call `.bind(this)` at the end to lock the scoping of `this` inside of the `add` method. +The difference with the modified version is that `add` no longer takes an argument. With this, we can make the `onclick` binding on the template *much* simpler: