Skip to content

Instantly share code, notes, and snippets.

View Haraldson's full-sized avatar

Hein Haraldson Berg Haraldson

View GitHub Profile
@Haraldson
Haraldson / regions.js
Last active October 22, 2015 08:09 — forked from belackriv/gist:008087f6f005aee1167f
Marrionette Table without composite view
var NoWrapRegion = Backbone.Marionette.Region.extend({
attachHtml: function (view) {
this.el.innerHTML="";
var children = view.el.childNodes;
while (children.length > 0) {
this.el.appendChild(children[0]);
}
view.setElement(this.el, true)
}
});