Browse Source

chore: check binding.value instead of just binding object (#5065)

dev
YOU 8 years ago
committed by Eduardo San Martin Morote
parent
commit
d7287f4df8
  1. 4
      examples/todomvc/app.js

4
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()
}
}

Loading…
Cancel
Save