If events are declared on the view, their keys should be sorted alphabetically to improve predictability of the code.
The following patterns are considered warnings:
Backbone.View.extend({
events: {
'submit': 'handleSubmit',
'click': 'handleClick'
}
...
});
The following patterns are not warnings:
Backbone.View.extend({
events: {
'blur': 'handleBlur',
'click': 'handleClick',
'submit': 'handleSubmit'
}
...
});
When you do not use events
extensively or your views usually only handle a small number of events.