Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有类似于 Backbone.Events.once 的 Marionette Eventbinder?类似“bindToOnce”的东西。
不,而且很可能不会。Marionette 的 EventBinder 将在不久的将来的某个时候被 Backbone.Events 取代。
但是,您可以通过这样做来完成同样的事情:
foo.bindTo(bar, "baz", _.once(myFunction));