If you are anything like me your Marionette views might looks something like this:
class Table extends Marionette.ItemViewui:top: ".top"base: ".base"events: ->"click .top": @knock"click .base": @budgeonShow: ->@ui.base.tooltiptext: "this is the base of the table"@ui.top.tooltiptext: "this is the top of the table"budge: -> ...knock: -> ...
Let's take a look at that
But now take a look below at the
Well, we are in luck, because as of Marionette v1.4.0 this problem was solved for us!
class Table extends Marionette.ItemViewui:top: ".top"base: ".base"events: ->"click @ui.top": @knock"click @ui.base": @budge
As you can see, this is much improved from what we had before and our DOM selectors are no longer repeated.
As an aside, I now find myself defining a
Sam Saccone, @samccone