<section id="section"></section>, то используйте метод .empty() на этом контейнере. С удалением содержимого контейнера он удалит и обработчики. $('#section').on('click', 'div', function(e) {}).console.log(i);, который лежит внутри анонимной функции, которая создается каждый раз.<li class="demo" data-id='1'>Пункт 1</li>, $('demo').eq(0).data('id', 3), <li class="demo" data-id='1'>Пункт 1</li>. initialize: function () {
this.template = $.tpl['profile-form'];
this.model.fetch({
data: $.param({email: localStorage.getItem('user_email')}),
type: 'POST',
}).done(this.render);
},
render: function (eventName) {
this.$el.html(this.template(this.model.toJSON()));
return this;
}