TypeError no capturado: No se puede llamar al método 'reemplazar' de backbone.js no definido
Estoy tratando de desarrollar una aplicación RSS simple usando backbone.js. Estoy usando este backbone.jstutorial. Recibo el siguiente error, en la línea 2 (plantilla), al definir la plantilla. ¿Alguien también puede decirme por qué se define tagName: "li" en el tutorial?
TypeError no capturado: No se puede llamar al método 'reemplazar' de backbone.js no definido
Javscript
window.SourceListView = Backbone.View.extend({
tagName:"li",
template: _.template($('#tmpl_sourcelist').html()),
initialize:function () {
this.model.bind("change", this.render, this);
this.model.bind("destroy", this.close, this);
},
render:function (eventName) {
$(this.$el).html(this.template(this.model.toJSON()));
return this;
},
close:function () {
$(this.el).unbind();
$(this.el).remove();
}
});
HTML
<script type="text/template" id="tmpl_sourcelist">
<div id="source">
<a href='#Source/<%=id%>'<%=name%></a>
</div>
</script>
Gracias