Features
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();
Goals:
- make it possible to add breaking changes in a minor release
- give community members a chance to provide feedback for new functionality
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.
© 2017 Muted Solutions, LLC
Licensed under the MIT License.
https://marionettejs.com/docs/v3.5.1/marionette.features.html