Marionette Features are opt-in functionality. That you can enable by setting Marionette.FEATURES
in your app.
It is a good practice to set these flags only once prior to instantiating any Marionette class.
Marionette.setEnabled('fooFlag', true);
var myApp = new MyApp({
region: '#app-hook'
});
myApp.start();
childViewEventPrefix
This flag is set to true
by default.
This flag indicates whether childViewEventPrefix
for all views will return the default value of 'childview'
or if it will return false
disabling automatic event bubbling.
triggersPreventDefault
This flag is set to true
by default.
It indicates the whether or not View.triggers
will call event.preventDefault()
if not explicitly defined by the trigger.
In v2 and v3 the default has been true, but for v4 false
is being considered.
triggersStopPropagating
This flag is set to true
by default.
It indicates the whether or not View.triggers
will call event.stopPropagating()
if not explicitly defined by the trigger.
In v2 and v3 the default has been true, but for v4 false
is being considered.