在Backbone中这是正常的,在视图上的.remove()之后,我仍然可以通过console.log访问事件对象吗?
var View = Backbone.View.extend({
initialize : function () {
console.log("hey");
},
events: {
"click ul#products li a": "item"
}
});
var vi = new View;
vi.off();
vi.remove();
vi.undelegateEvents();
console.log(vi);