Transitional monkey patch to make Marionette v3 compatible with v2.
Do NOT use this library in production! This library is meant as a transitional tool only. It is not guaranteed to be 100% backwards compatible and it will certainly be less performant.
Currently using v3.0.0-pre.3.
Include and execute this library directly after marionette prior to using the library.
You can turn off certain patches by passing an object setting patches to false.
// main.js
import _ from 'underscrore';
import Backbone from 'backbone';
import Marionette from 'backbone.marionette'
import Patch from 'marionette-v3-compat';
// turn off the ItemView and LayoutView patch
Patch({
ItemView: false,
LayoutView: false
});
Todo: List available patches.