text: /**
    *	Backbone BaseView v1.0.2 
    * Copyright Bret Little 2013
    * 
    * https://github.com/blittle/backbone-base-view
    * 
    * License MIT
    */
  (function(e,t){if(typeof define==="function"&&define.amd){define(["backbone","underscore"],function(e,n){var r=t(e,n);e.BaseView=r;return r},function(){var n=t(e.Backbone,e._);e.Backbone.BaseView=n;return n})}else{e.Backbone.BaseView=t(e.Backbone,e._)}})(this,function(e,t){"use strict";var n=e.View.extend({createSubView:function(e,n,r,i){if(!this._subViews){this._subViews=[]}if(n instanceof Function){i=r;r=n;n=null}i=t.extend(t.clone(this.options),i);this._subViews.push({name:e,selector:n});this[e]=new r(i);this[e].parent=this},render:function(){var e=this,n="";if(typeof this._template==="string"){n=this._template}else if(this._template){n=this._template(this.serialize?this.serialize():{})}this.$el.html(n);t.each(this._subViews,function(t){var n=t.selector,r=e[t.name];if(!n||!n.length){e.$el.append(r.el)}else{e.$(n).html(r.el)}r.render()});return this},remove:function(){var n=this;if(this._subViews){t.each(this._subViews,function(e){if(n[e.name].close)n[e.name].close();n[e.name].remove();delete n[e.name]});this._subViews.length=0}e.View.prototype.remove.call(this);return this}});return n})
  