V
V
Vyacheslav2015-11-27 15:24:16
Notifications
Vyacheslav, 2015-11-27 15:24:16

How are events handled in backbone.js?

Hello. Help me to understand. Have a backbone.js project. A form with html elements, input, label is built on it. One of the inputs is of type checkbox.
So, when passing the form using the tab key, the value of this ckeckbox is set to NULL and the form returns a response of 500. Which way to dig, any ideas?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Kravchenko, 2015-11-27
@mydearfriend

somewhere it says something like:

var formView = Backbone.View.extend({
  events:{
    'focus input[type=checkbox]':'makeNull'
  },
  makeNull:function(e){
    e.target.value = null;
  }
});

In other words, you need to find the view of this form and see its events

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question