Skip to content

Commit

Permalink
Add support for the Marionette Inspector.
Browse files Browse the repository at this point in the history
* The inspection needs access to Backbone and Marionette.

Closes #45
  • Loading branch information
caseycesari committed Apr 15, 2015
1 parent 94a5945 commit 7dfed7a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/mmw/js/shim/backbone.marionette.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 7dfed7a

Please sign in to comment.