From d7287f4df80fb619c6960e2eb17bbaa3255d7c0a Mon Sep 17 00:00:00 2001 From: YOU Date: Thu, 2 Mar 2017 15:16:38 +0000 Subject: [PATCH] chore: check binding.value instead of just binding object (#5065) --- examples/todomvc/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/todomvc/app.js b/examples/todomvc/app.js index 54022267..f8bfeb1e 100644 --- a/examples/todomvc/app.js +++ b/examples/todomvc/app.js @@ -131,8 +131,8 @@ var app = new Vue({ // before focusing on the input field. // https://vuejs.org/guide/custom-directive.html directives: { - 'todo-focus': function (el, value) { - if (value) { + 'todo-focus': function (el, binding) { + if (binding.value) { el.focus() } }