Skip to content

Instantly share code, notes, and snippets.

@isochronous
Created December 11, 2012 20:10
Show Gist options
  • Save isochronous/4261718 to your computer and use it in GitHub Desktop.
Save isochronous/4261718 to your computer and use it in GitHub Desktop.
marionette layout fix
var result = Marionette.ItemView.prototype.render.apply(this, arguments);
// FIX: Issue 351 - https://github.com/marionettejs/backbone.marionette/pull/351
// inject regions into template
var that = this;
_.each(this.regionManagers, function(region){
if (region.currentView) {
that.$el.find(region.el).html(region.currentView.$el);
}
});
@isochronous
Copy link
Author

Note that this issue has been fixed since the version of Marionette I wrote it for (0.96 I think)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment