Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 782 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 782 Bytes

marionette-v3-compat

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.