From 7dfed7a5c738d2d640c4c50b4ed81e8dc3e8b75a Mon Sep 17 00:00:00 2001 From: Casey Thomas Date: Wed, 15 Apr 2015 09:45:22 -0400 Subject: [PATCH] Add support for the Marionette Inspector. * The inspection needs access to Backbone and Marionette. Closes #45 --- src/mmw/js/shim/backbone.marionette.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mmw/js/shim/backbone.marionette.js b/src/mmw/js/shim/backbone.marionette.js index b63529838..f7126536b 100644 --- a/src/mmw/js/shim/backbone.marionette.js +++ b/src/mmw/js/shim/backbone.marionette.js @@ -10,4 +10,9 @@ Backbone.Marionette.Renderer.render = function(template, data) { return template(data); }; +// Expose Backbone and Marionette for the Marionette Inspector +if (window.__agent) { + window.__agent.start(Backbone, Marionette); +} + module.exports = Marionette;