Sub Class a Backbone.View Sub Class & retain events

前端 未结 5 1384
被撕碎了的回忆
被撕碎了的回忆 2020-12-23 17:29

I have a generic subclass of Backbone.View which has a close event listener.

var GenericView = Backbone.View.extend({

    events          


        
5条回答
  •  半阙折子戏
    2020-12-23 18:27

    You may find this useful: http://kalimotxocoding.blogspot.com/2011/03/playing-with-backbonejs-views.html

    Seconds what I mentioned about _.extend(...) and what you currently have...

提交回复
热议问题