diff --git a/bower.json b/bower.json index cce298fa4e..5c3864a968 100644 --- a/bower.json +++ b/bower.json @@ -3,7 +3,7 @@ "description" : "Make your Backbone.js apps dance with a composite application architecture!", "url" : "http://marionettejs.org", "main" : "./lib/backbone.marionette.js", - "version" : "1.4.1", + "version" : "1.5.0", "keywords" : [ "backbone", diff --git a/changelog.md b/changelog.md index 1cd9150c0f..d3383f8c74 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,29 @@ +### v1.5.0 [view commit logs](https://github.com/marionettejs/backbone.marionette/compare/v1.4.1...v1.5.0) + * Views + * View `options` can now be a [function](https://github.com/marionettejs/backbone.marionette/pull/819) + * `onDomRefresh` is now only called when said `view` is in the [DOM](https://github.com/marionettejs/backbone.marionette/pull/855) + + *CollectionView/CompositeView + * `itemViewContainer` is now called with the correct [context](https://github.com/marionettejs/backbone.marionette/pull/841) + * Fix bug where reseting a `collection` within a `collectionView` would cause `onShow` and `onDomRefresh` to be called [incorrectly](https://github.com/marionettejs/backbone.marionette/pull/849) on the itemViews. + * `addItemView` now returns the `view` that was [added](https://github.com/marionettejs/backbone.marionette/pull/851) + * You can now specify an `itemEvents` hash or method which allows you to capture all bubbling itemEvents without having to [manually set bindings](https://github.com/marionettejs/backbone.marionette/pull/861). + + ```js + itemEvents: { + "render": function() { + console.log("an itemView has been rendered"); + } + } + ``` + + * Regions + * Region `close` event now passes the `view` being closed with the [event](https://github.com/marionettejs/backbone.marionette/pull/834). + + * General + * Updated bower ignore folder + * Added an editor config file + ### v1.4.1 [view commit logs](https://github.com/marionettejs/backbone.marionette/compare/v1.4.0...v1.4.1) * Views * fix for inital view class options. Now retains set options at class instantiation diff --git a/lib/backbone.marionette.js b/lib/backbone.marionette.js index b3b011425a..82f9c389fb 100644 --- a/lib/backbone.marionette.js +++ b/lib/backbone.marionette.js @@ -1,8 +1,8 @@ // MarionetteJS (Backbone.Marionette) // ---------------------------------- -// v1.4.1 +// v1.5.0 // -// Copyright (c)2013 Derick Bailey, Muted Solutions, LLC. +// Copyright (c)2014 Derick Bailey, Muted Solutions, LLC. // Distributed under MIT license // // http://marionettejs.com @@ -496,11 +496,11 @@ Marionette.getOption = function(target, optionName){ // `this.triggerMethod("foo")` will trigger the "foo" event and // call the "onFoo" method. // -// `this.triggerMethod("foo:bar") will trigger the "foo:bar" event and +// `this.triggerMethod("foo:bar")` will trigger the "foo:bar" event and // call the "onFooBar" method. Marionette.triggerMethod = (function(){ - // split the event name on the : + // split the event name on the ":" var splitter = /(^|:)(\w)/gi; // take the event section ("section1:section2:section3") @@ -509,7 +509,7 @@ Marionette.triggerMethod = (function(){ return eventName.toUpperCase(); } - // actual triggerMethod name + // actual triggerMethod implementation var triggerMethod = function(event) { // get the method name from the event name var methodName = 'on' + event.replace(splitter, getEventName); @@ -537,7 +537,7 @@ Marionette.triggerMethod = (function(){ // in the DOM, trigger a "dom:refresh" event every time it is // re-rendered. -Marionette.MonitorDOMRefresh = (function(){ +Marionette.MonitorDOMRefresh = (function(documentElement){ // track when the view has been shown in the DOM, // using a Marionette.Region (or by other means of triggering "show") function handleShow(view){ @@ -553,13 +553,17 @@ Marionette.MonitorDOMRefresh = (function(){ // Trigger the "dom:refresh" event and corresponding "onDomRefresh" method function triggerDOMRefresh(view){ - if (view._isShown && view._isRendered){ + if (view._isShown && view._isRendered && isInDOM(view)){ if (_.isFunction(view.triggerMethod)){ view.triggerMethod("dom:refresh"); } } } + function isInDOM(view) { + return documentElement.contains(view.el); + } + // Export public API return function(view){ view.listenTo(view, "show", function(){ @@ -570,7 +574,7 @@ Marionette.MonitorDOMRefresh = (function(){ handleRender(view); }); }; -})(); +})(document.documentElement); // Marionette.bindEntityEvents & unbindEntityEvents @@ -909,7 +913,7 @@ _.extend(Marionette.Region.prototype, Backbone.Events, { if (view.close) { view.close(); } else if (view.remove) { view.remove(); } - Marionette.triggerMethod.call(this, "close"); + Marionette.triggerMethod.call(this, "close", view); delete this.currentView; }, @@ -1052,9 +1056,9 @@ Marionette.RegionManager = (function(Marionette){ // // Mix in methods from Underscore, for iteration, and other // collection related features. - var methods = ['forEach', 'each', 'map', 'find', 'detect', 'filter', - 'select', 'reject', 'every', 'all', 'some', 'any', 'include', - 'contains', 'invoke', 'toArray', 'first', 'initial', 'rest', + var methods = ['forEach', 'each', 'map', 'find', 'detect', 'filter', + 'select', 'reject', 'every', 'all', 'some', 'any', 'include', + 'contains', 'invoke', 'toArray', 'first', 'initial', 'rest', 'last', 'without', 'isEmpty', 'pluck']; _.each(methods, function(method) { @@ -1079,7 +1083,7 @@ Marionette.TemplateCache = function(templateId){ }; // TemplateCache object-level methods. Manage the template -// caches from these method calls instead of creating +// caches from these method calls instead of creating // your own TemplateCache instances _.extend(Marionette.TemplateCache, { templateCaches: {}, @@ -1102,7 +1106,7 @@ _.extend(Marionette.TemplateCache, { // are specified, clears all templates: // `clear()` // - // If arguments are specified, clears each of the + // If arguments are specified, clears each of the // specified templates from the cache: // `clear("#t1", "#t2", "...")` clear: function(){ @@ -1142,7 +1146,7 @@ _.extend(Marionette.TemplateCache.prototype, { // Load a template from the DOM, by default. Override // this method to provide your own template retrieval // For asynchronous loading with AMD/RequireJS, consider - // using a template-loader plugin as described here: + // using a template-loader plugin as described here: // https://github.com/marionettejs/backbone.marionette/wiki/Using-marionette-with-requirejs loadTemplate: function(templateId){ var template = Marionette.$(templateId).html(); @@ -1211,7 +1215,7 @@ Marionette.View = Backbone.View.extend({ // this is a backfill since backbone removed the assignment // of this.options // at some point however this may be removed - this.options = _.extend({}, this.options, options); + this.options = _.extend({}, _.result(this, 'options'), _.isFunction(options) ? options.call(this) : options); // parses out the @ui DSL for events this.events = this.normalizeUIKeys(_.result(this, 'events')); @@ -1671,12 +1675,14 @@ Marionette.CollectionView = Marionette.View.extend({ // call the "show" method if the collection view // has already been shown - if (this._isShown){ + if (this._isShown && !this.isBuffering){ Marionette.triggerMethod.call(view, "show"); } // this view was added this.triggerMethod("after:item:added", view); + + return view; }, // Set up the child view event forwarding. Uses an "itemview:" @@ -1688,13 +1694,30 @@ Marionette.CollectionView = Marionette.View.extend({ // prepending "itemview:" to the event name this.listenTo(view, "all", function(){ var args = slice(arguments); - args[0] = prefix + ":" + args[0]; + var rootEvent = args[0]; + var itemEvents = this.getItemEvents(); + + args[0] = prefix + ":" + rootEvent; args.splice(1, 0, view); + // call collectionView itemEvent if defined + if (typeof itemEvents !== "undefined" && _.isFunction(itemEvents[rootEvent])) { + itemEvents[rootEvent].apply(this, args); + } + Marionette.triggerMethod.apply(this, args); }, this); }, + // returns the value of itemEvents depending on if a function + getItemEvents: function() { + if (_.isFunction(this.itemEvents)) { + return this.itemEvents.call(this); + } + + return this.itemEvents; + }, + // render the item view renderItemView: function(view, index) { view.render(); @@ -1928,7 +1951,7 @@ Marionette.CompositeView = Marionette.CollectionView.extend({ var itemViewContainer = Marionette.getOption(containerView, "itemViewContainer"); if (itemViewContainer){ - var selector = _.isFunction(itemViewContainer) ? itemViewContainer() : itemViewContainer; + var selector = _.isFunction(itemViewContainer) ? itemViewContainer.call(this) : itemViewContainer; container = containerView.$(selector); if (container.length <= 0) { throwError("The specified `itemViewContainer` was not found: " + containerView.itemViewContainer, "ItemViewContainerMissingError"); @@ -2092,7 +2115,7 @@ Marionette.Layout = Marionette.ItemView.extend({ // // Configure an AppRouter with `appRoutes`. // -// App routers can only take one `controller` object. +// App routers can only take one `controller` object. // It is recommended that you divide your controller // objects in to smaller pieces of related functionality // and have multiple routers / controllers, instead of @@ -2104,7 +2127,7 @@ Marionette.AppRouter = Backbone.Router.extend({ constructor: function(options){ Backbone.Router.prototype.constructor.apply(this, slice(arguments)); - + this.options = options || {}; var appRoutes = Marionette.getOption(this, "appRoutes"); diff --git a/lib/backbone.marionette.map b/lib/backbone.marionette.map index 3b1a02ef33..de8f111f5b 100644 --- a/lib/backbone.marionette.map +++ b/lib/backbone.marionette.map @@ -1 +1 @@ -{"version":3,"file":"lib/backbone.marionette.min.js","sources":["backbone.marionette.js"],"names":["Backbone","ChildViewContainer","_","Container","views","this","_views","_indexByModel","_indexByCustom","_updateLength","each","add","extend","prototype","view","customIndex","viewCid","cid","model","findByModel","findByModelCid","modelCid","findByCid","findByCustom","index","findByIndex","values","remove","any","key","call","method","apply","tail","arguments","args","isFunction","length","size","methods","concat","toArray","Wreqr","Marionette","Handlers","options","_wreqrHandlers","initialize","Model","Events","setHandlers","handlers","handler","name","context","isObject","callback","setHandler","config","trigger","hasHandler","getHandler","Error","Array","slice","removeHandler","removeAllHandlers","CommandStorage","_commands","getCommands","commandName","commands","command","instances","addCommand","push","clearCommands","Commands","storageType","constructor","_initializeStorage","on","_executeCommands","execute","storage","StorageType","RequestResponse","request","EventAggregator","EA","global","protoSlice","throwError","message","error","$","getOption","target","optionName","value","undefined","triggerMethod","getEventName","match","prefix","eventName","toUpperCase","splitter","event","methodName","replace","MonitorDOMRefresh","handleShow","_isShown","triggerDOMRefresh","handleRender","_isRendered","listenTo","bindFromStrings","entity","evt","methodNames","split","bindToFunction","unbindFromStrings","stopListening","unbindToFunction","iterateEvents","bindings","functionCallback","stringCallback","bindEntityEvents","unbindEntityEvents","Callbacks","_deferred","Deferred","_callbacks","contextOverride","cb","ctx","done","run","resolve","reset","callbacks","Controller","close","unbind","Region","el","err","buildRegion","regionConfig","defaultRegionType","regionIsString","regionSelectorIsString","selector","regionTypeIsUndefined","regionType","regionIsType","RegionType","region","parentEl","getEl","find","show","ensureEl","isViewClosed","isClosed","isUndefined","$el","isDifferentView","currentView","render","open","empty","append","attachView","RegionManager","_regions","addRegions","regionDefinitions","defaults","regions","definition","addRegion","isString","hasSelector","_store","get","removeRegion","_remove","removeRegions","closeRegions","_setLength","TemplateCache","templateId","templateCaches","cachedTemplate","load","clear","i","compiledTemplate","template","loadTemplate","compileTemplate","html","rawTemplate","Renderer","data","templateFunc","View","bindAll","events","normalizeUIKeys","result","onShowCalled","getTemplate","mixinTemplateHelpers","templateHelpers","hash","keys","v","ui","configureTriggers","triggers","triggerEvents","hasOptions","e","prevent","preventDefault","stop","stopPropagation","shouldPrevent","shouldStop","collection","delegateEvents","_delegateDOMEvents","combinedEvents","undelegateEvents","shouldClose","unbindUIElements","bindUIElements","_uiBindings","ItemView","serializeData","toJSON","items","CollectionView","itemViewEventPrefix","_initChildViewStorage","_initialEvents","initRenderBuffer","elBuffer","document","createDocumentFragment","startBuffering","isBuffering","endBuffering","appendBuffer","addChildView","removeItemView","item","closeEmptyView","getItemView","indexOf","addItemView","children","child","triggerBeforeRender","triggerRendered","_renderChildren","closeChildren","showCollection","showEmptyView","EmptyView","getEmptyView","_showingEmptyView","itemView","itemViewOptions","buildItemView","addChildViewEventForwarding","renderItemView","splice","appendHtml","ItemViewType","removeChildView","checkEmpty","collectionView","buffer","appendChild","CompositeView","once","isRendered","resetItemViewContainer","renderModel","compositeView","$container","getItemViewContainer","containerView","$itemViewContainer","container","itemViewContainer","Layout","_firstRender","_initializeRegions","_reInitializeRegions","regionManager","_buildRegions","that","_initRegionManager","AppRouter","Router","appRoutes","controller","_getController","processAppRoutes","appRoute","route","_addAppRoute","routeNames","reverse","bind","Application","_initCallbacks","vent","reqres","submodules","addInitializer","initializer","start","_regionManager","getRegion","module","unshift","Module","create","moduleName","app","_setupInitializersAndFinalizers","startWithParent","_initializerCallbacks","addFinalizer","_finalizerCallbacks","_isInitialized","mod","addDefinition","moduleDefinition","customArgs","_runModuleDefinition","flatten","moduleNames","moduleDefinitions","parentModule","_getModule","_addModuleDefinition","def","fn","define","startWithParentIsConfigured"],"mappings":"AAkCAA,SAASC,mBAAqB,SAAUD,EAAUE,GAKhD,GAAIC,GAAY,SAASC,GACvBC,KAAKC,UACLD,KAAKE,iBACLF,KAAKG,kBACLH,KAAKI,gBAELP,EAAEQ,KAAKN,EAAOC,KAAKM,IAAKN,MAM1BH,GAAEU,OAAOT,EAAUU,WAMjBF,IAAK,SAASG,EAAMC,GAClB,GAAIC,GAAUF,EAAKG,GAGnBZ,MAAKC,OAAOU,GAAWF,EAGnBA,EAAKI,QACPb,KAAKE,cAAcO,EAAKI,M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end of file +{"version":3,"file":"lib/backbone.marionette.min.js","sources":["backbone.marionette.js"],"names":["Backbone","ChildViewContainer","_","Container","views","this","_views","_indexByModel","_indexByCustom","_updateLength","each","add","extend","prototype","view","customIndex","viewCid","cid","model","findByModel","findByModelCid","modelCid","findByCid","findByCustom","index","findByIndex","values","remove","any","key","call","method","apply","tail","arguments","args","isFunction","length","size","methods","concat","toArray","Wreqr","Marionette","Handlers","options","_wreqrHandlers","initialize","Model","Events","setHandlers","handlers","handler","name","context","isObject","callback","setHandler","config","trigger","hasHandler","getHandler","Error","Array","slice","removeHandler","removeAllHandlers","CommandStorage","_commands","getCommands","commandName","commands","command","instances","addCommand","push","clearCommands","Commands","storageType","constructor","_initializeStorage","on","_executeCommands","execute","storage","StorageType","RequestResponse","request","EventAggregator","EA","global","protoSlice","throwError","message","error","$","getOption","target","optionName","value","undefined","triggerMethod","getEventName","match","prefix","eventName","toUpperCase","splitter","event","methodName","replace","MonitorDOMRefresh","documentElement","handleShow","_isShown","triggerDOMRefresh","handleRender","_isRendered","isInDOM","contains","el","listenTo","document","bindFromStrings","entity","evt","methodNames","split","bindToFunction","unbindFromStrings","stopListening","unbindToFunction","iterateEvents","bindings","functionCallback","stringCallback","bindEntityEvents","unbindEntityEvents","Callbacks","_deferred","Deferred","_callbacks","contextOverride","cb","ctx","done","run","resolve","reset","callbacks","Controller","close","unbind","Region","err","buildRegion","regionConfig","defaultRegionType","regionIsString","regionSelectorIsString","selector","regionTypeIsUndefined","regionType","regionIsType","RegionType","region","parentEl","getEl","find","show","ensureEl","isViewClosed","isClosed","isUndefined","$el","isDifferentView","currentView","render","open","empty","append","attachView","RegionManager","_regions","addRegions","regionDefinitions","defaults","regions","definition","addRegion","isString","hasSelector","_store","get","removeRegion","_remove","removeRegions","closeRegions","_setLength","TemplateCache","templateId","templateCaches","cachedTemplate","load","clear","i","compiledTemplate","template","loadTemplate","compileTemplate","html","rawTemplate","Renderer","data","templateFunc","View","bindAll","result","events","normalizeUIKeys","onShowCalled","getTemplate","mixinTemplateHelpers","templateHelpers","hash","keys","v","ui","configureTriggers","triggers","triggerEvents","hasOptions","e","prevent","preventDefault","stop","stopPropagation","shouldPrevent","shouldStop","collection","delegateEvents","_delegateDOMEvents","combinedEvents","undelegateEvents","shouldClose","unbindUIElements","bindUIElements","_uiBindings","ItemView","serializeData","toJSON","items","CollectionView","itemViewEventPrefix","_initChildViewStorage","_initialEvents","initRenderBuffer","elBuffer","createDocumentFragment","startBuffering","isBuffering","endBuffering","appendBuffer","addChildView","removeItemView","item","closeEmptyView","getItemView","indexOf","addItemView","children","child","triggerBeforeRender","triggerRendered","_renderChildren","closeChildren","showCollection","showEmptyView","EmptyView","getEmptyView","_showingEmptyView","itemView","itemViewOptions","buildItemView","addChildViewEventForwarding","renderItemView","rootEvent","itemEvents","getItemEvents","splice","appendHtml","ItemViewType","removeChildView","checkEmpty","collectionView","buffer","appendChild","CompositeView","once","isRendered","resetItemViewContainer","renderModel","compositeView","$container","getItemViewContainer","containerView","$itemViewContainer","container","itemViewContainer","Layout","_firstRender","_initializeRegions","_reInitializeRegions","regionManager","_buildRegions","that","_initRegionManager","AppRouter","Router","appRoutes","controller","_getController","processAppRoutes","appRoute","route","_addAppRoute","routeNames","reverse","bind","Application","_initCallbacks","vent","reqres","submodules","addInitializer","initializer","start","_regionManager","getRegion","module","unshift","Module","create","moduleName","app","_setupInitializersAndFinalizers","startWithParent","_initializerCallbacks","addFinalizer","_finalizerCallbacks","_isInitialized","mod","addDefinition","moduleDefinition","customArgs","_runModuleDefinition","flatten","moduleNames","moduleDefinitions","parentModule","_getModule","_addModuleDefinition","def","fn","define","startWithParentIsConfigured"],"mappings":"AAkCAA,SAASC,mBAAqB,SAAUD,EAAUE,GAKhD,GAAIC,GAAY,SAASC,GACvBC,KAAKC,UACLD,KAAKE,iBACLF,KAAKG,kBACLH,KAAKI,gBAELP,EAAEQ,KAAKN,EAAOC,KAAKM,IAAKN,MAM1BH,GAAEU,OAAOT,EAAUU,WAMj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GAAIL,GAASoB,EAAahB,EAU1B,OARKJ,KAEHA,EAAS,GAAIxS,GAAW0S,OAAOE,EAAYC,GAC3Ce,EAAahB,GAAcJ,EAE3BoB,EAAa1B,WAAWU,GAAcJ,GAGjCA,GAGTsB,qBAAsB,SAASF,EAAcpB,EAAQuB,EAAKvU,GACxD,GAAIwU,GACAjB,CAEAxV,GAAEkC,WAAWsU,IAEfC,EAAKD,EACLhB,GAAkB,GAETxV,EAAEqD,SAASmT,IAEpBC,EAAKD,EAAIE,OACTlB,EAAkBgB,EAAIhB,iBAItBA,GAAkB,EAIhBiB,GACFxB,EAAOa,cAAcW,EAAIxU,GAK3BgT,EAAOO,gBAAkBP,EAAOO,iBAAmBA,EAG/CP,EAAOO,kBAAoBP,EAAO0B,8BAGpC1B,EAAO0B,6BAA8B,EAGrCN,EAAazB,eAAe,SAASjS,GAC/BsS,EAAOO,iBACTP,EAAOH,MAAMnS,SAWdF,GACNtC,KAAML,SAAUE"} \ No newline at end of file diff --git a/lib/backbone.marionette.min.js b/lib/backbone.marionette.min.js index da61f06ed4..ed3bf2bc2d 100644 --- a/lib/backbone.marionette.min.js +++ b/lib/backbone.marionette.min.js @@ -1,8 +1,8 @@ // MarionetteJS (Backbone.Marionette) // ---------------------------------- -// v1.4.1 +// v1.5.0 // -// Copyright (c)2013 Derick Bailey, Muted Solutions, LLC. +// Copyright (c)2014 Derick Bailey, Muted Solutions, LLC. // Distributed under MIT license // // http://marionettejs.com @@ -17,5 +17,5 @@ * https://github.com/marionettejs/backbone.wreqr/ */ -Backbone.ChildViewContainer=function(a,b){var c=function(a){this._views={},this._indexByModel={},this._indexByCustom={},this._updateLength(),b.each(a,this.add,this)};b.extend(c.prototype,{add:function(a,b){var c=a.cid;this._views[c]=a,a.model&&(this._indexByModel[a.model.cid]=c),b&&(this._indexByCustom[b]=c),this._updateLength()},findByModel:function(a){return this.findByModelCid(a.cid)},findByModelCid:function(a){var b=this._indexByModel[a];return this.findByCid(b)},findByCustom:function(a){var b=this._indexByCustom[a];return this.findByCid(b)},findByIndex:function(a){return b.values(this._views)[a]},findByCid:function(a){return this._views[a]},remove:function(a){var c=a.cid;a.model&&delete this._indexByModel[a.model.cid],b.any(this._indexByCustom,function(a,b){return a===c?(delete this._indexByCustom[b],!0):void 0},this),delete this._views[c],this._updateLength()},call:function(a){this.apply(a,b.tail(arguments))},apply:function(a,c){b.each(this._views,function(d){b.isFunction(d[a])&&d[a].apply(d,c||[])})},_updateLength:function(){this.length=b.size(this._views)}});var d=["forEach","each","map","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","toArray","first","initial","rest","last","without","isEmpty","pluck"];return b.each(d,function(a){c.prototype[a]=function(){var c=b.values(this._views),d=[c].concat(b.toArray(arguments));return b[a].apply(b,d)}}),c}(Backbone,_),Backbone.Wreqr=function(a,b,c){"use strict";var d={};return d.Handlers=function(a,b){var c=function(a){this.options=a,this._wreqrHandlers={},b.isFunction(this.initialize)&&this.initialize(a)};return c.extend=a.Model.extend,b.extend(c.prototype,a.Events,{setHandlers:function(a){b.each(a,function(a,c){var d=null;b.isObject(a)&&!b.isFunction(a)&&(d=a.context,a=a.callback),this.setHandler(c,a,d)},this)},setHandler:function(a,b,c){var d={callback:b,context:c};this._wreqrHandlers[a]=d,this.trigger("handler:add",a,b,c)},hasHandler:function(a){return!!this._wreqrHandlers[a]},getHandler:function(a){var b=this._wreqrHandlers[a];if(!b)throw new Error("Handler not found for '"+a+"'");return function(){var a=Array.prototype.slice.apply(arguments);return b.callback.apply(b.context,a)}},removeHandler:function(a){delete this._wreqrHandlers[a]},removeAllHandlers:function(){this._wreqrHandlers={}}}),c}(a,c),d.CommandStorage=function(){var b=function(a){this.options=a,this._commands={},c.isFunction(this.initialize)&&this.initialize(a)};return c.extend(b.prototype,a.Events,{getCommands:function(a){var b=this._commands[a];return b||(b={command:a,instances:[]},this._commands[a]=b),b},addCommand:function(a,b){var c=this.getCommands(a);c.instances.push(b)},clearCommands:function(a){var b=this.getCommands(a);b.instances=[]}}),b}(),d.Commands=function(a){return a.Handlers.extend({storageType:a.CommandStorage,constructor:function(b){this.options=b||{},this._initializeStorage(this.options),this.on("handler:add",this._executeCommands,this);var c=Array.prototype.slice.call(arguments);a.Handlers.prototype.constructor.apply(this,c)},execute:function(a,b){a=arguments[0],b=Array.prototype.slice.call(arguments,1),this.hasHandler(a)?this.getHandler(a).apply(this,b):this.storage.addCommand(a,b)},_executeCommands:function(a,b,d){var e=this.storage.getCommands(a);c.each(e.instances,function(a){b.apply(d,a)}),this.storage.clearCommands(a)},_initializeStorage:function(a){var b,d=a.storageType||this.storageType;b=c.isFunction(d)?new d:d,this.storage=b}})}(d),d.RequestResponse=function(a){return a.Handlers.extend({request:function(){var a=arguments[0],b=Array.prototype.slice.call(arguments,1);return this.getHandler(a).apply(this,b)}})}(d),d.EventAggregator=function(a,b){var c=function(){};return c.extend=a.Model.extend,b.extend(c.prototype,a.Events),c}(a,c),d}(Backbone,Backbone.Marionette,_);var Marionette=function(a,b,c){"use strict";function d(a){return g.call(a)}function e(a,b){var c=new Error(a);throw c.name=b||"Error",c}var f={};b.Marionette=f,f.$=b.$;var g=Array.prototype.slice;return f.extend=b.Model.extend,f.getOption=function(a,b){if(a&&b){var c;return c=a.options&&b in a.options&&void 0!==a.options[b]?a.options[b]:a[b]}},f.triggerMethod=function(){function a(a,b,c){return c.toUpperCase()}var b=/(^|:)(\w)/gi,d=function(d){var e="on"+d.replace(b,a),f=this[e];return c.isFunction(this.trigger)&&this.trigger.apply(this,arguments),c.isFunction(f)?f.apply(this,c.tail(arguments)):void 0};return d}(),f.MonitorDOMRefresh=function(){function a(a){a._isShown=!0,d(a)}function b(a){a._isRendered=!0,d(a)}function d(a){a._isShown&&a._isRendered&&c.isFunction(a.triggerMethod)&&a.triggerMethod("dom:refresh")}return function(c){c.listenTo(c,"show",function(){a(c)}),c.listenTo(c,"render",function(){b(c)})}}(),function(a){function b(a,b,d,f){var g=f.split(/\s+/);c.each(g,function(c){var f=a[c];f||e("Method '"+c+"' was configured as an event handler, but does not exist."),a.listenTo(b,d,f,a)})}function d(a,b,c,d){a.listenTo(b,c,d,a)}function f(a,b,d,e){var f=e.split(/\s+/);c.each(f,function(c){var e=a[c];a.stopListening(b,d,e,a)})}function g(a,b,c,d){a.stopListening(b,c,d,a)}function h(a,b,d,e,f){b&&d&&(c.isFunction(d)&&(d=d.call(a)),c.each(d,function(d,g){c.isFunction(d)?e(a,b,g,d):f(a,b,g,d)}))}a.bindEntityEvents=function(a,c,e){h(a,c,e,d,b)},a.unbindEntityEvents=function(a,b,c){h(a,b,c,g,f)}}(f),f.Callbacks=function(){this._deferred=f.$.Deferred(),this._callbacks=[]},c.extend(f.Callbacks.prototype,{add:function(a,b){this._callbacks.push({cb:a,ctx:b}),this._deferred.done(function(c,d){b&&(c=b),a.call(c,d)})},run:function(a,b){this._deferred.resolve(b,a)},reset:function(){var a=this._callbacks;this._deferred=f.$.Deferred(),this._callbacks=[],c.each(a,function(a){this.add(a.cb,a.ctx)},this)}}),f.Controller=function(a){this.triggerMethod=f.triggerMethod,this.options=a||{},c.isFunction(this.initialize)&&this.initialize(this.options)},f.Controller.extend=f.extend,c.extend(f.Controller.prototype,b.Events,{close:function(){this.stopListening(),this.triggerMethod("close"),this.unbind()}}),f.Region=function(a){if(this.options=a||{},this.el=f.getOption(this,"el"),!this.el){var b=new Error("An 'el' must be specified for a region.");throw b.name="NoElError",b}if(this.initialize){var c=Array.prototype.slice.apply(arguments);this.initialize.apply(this,c)}},c.extend(f.Region,{buildRegion:function(a,b){var d="string"==typeof a,e="string"==typeof a.selector,f="undefined"==typeof a.regionType,g="function"==typeof a;if(!g&&!d&&!e)throw new Error("Region must be specified as a Region type, a selector string or an object with selector property");var h,i;d&&(h=a),a.selector&&(h=a.selector),g&&(i=a),!g&&f&&(i=b),a.regionType&&(i=a.regionType);var j=new i({el:h});return a.parentEl&&(j.getEl=function(b){var d=a.parentEl;return c.isFunction(d)&&(d=d()),d.find(b)}),j}}),c.extend(f.Region.prototype,b.Events,{show:function(a){this.ensureEl();var b=a.isClosed||c.isUndefined(a.$el),d=a!==this.currentView;d&&this.close(),a.render(),(d||b)&&this.open(a),this.currentView=a,f.triggerMethod.call(this,"show",a),f.triggerMethod.call(a,"show")},ensureEl:function(){this.$el&&0!==this.$el.length||(this.$el=this.getEl(this.el))},getEl:function(a){return f.$(a)},open:function(a){this.$el.empty().append(a.el)},close:function(){var a=this.currentView;a&&!a.isClosed&&(a.close?a.close():a.remove&&a.remove(),f.triggerMethod.call(this,"close"),delete this.currentView)},attachView:function(a){this.currentView=a},reset:function(){this.close(),delete this.$el}}),f.Region.extend=f.extend,f.RegionManager=function(a){var b=a.Controller.extend({constructor:function(b){this._regions={},a.Controller.prototype.constructor.call(this,b)},addRegions:function(a,b){var d={};return c.each(a,function(a,e){"string"==typeof a&&(a={selector:a}),a.selector&&(a=c.defaults({},a,b));var f=this.addRegion(e,a);d[e]=f},this),d},addRegion:function(b,d){var e,f=c.isObject(d),g=c.isString(d),h=!!d.selector;return e=g||f&&h?a.Region.buildRegion(d,a.Region):c.isFunction(d)?a.Region.buildRegion(d,a.Region):d,this._store(b,e),this.triggerMethod("region:add",b,e),e},get:function(a){return this._regions[a]},removeRegion:function(a){var b=this._regions[a];this._remove(a,b)},removeRegions:function(){c.each(this._regions,function(a,b){this._remove(b,a)},this)},closeRegions:function(){c.each(this._regions,function(a){a.close()},this)},close:function(){this.removeRegions();var b=Array.prototype.slice.call(arguments);a.Controller.prototype.close.apply(this,b)},_store:function(a,b){this._regions[a]=b,this._setLength()},_remove:function(a,b){b.close(),delete this._regions[a],this._setLength(),this.triggerMethod("region:remove",a,b)},_setLength:function(){this.length=c.size(this._regions)}}),d=["forEach","each","map","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","toArray","first","initial","rest","last","without","isEmpty","pluck"];return c.each(d,function(a){b.prototype[a]=function(){var b=c.values(this._regions),d=[b].concat(c.toArray(arguments));return c[a].apply(c,d)}}),b}(f),f.TemplateCache=function(a){this.templateId=a},c.extend(f.TemplateCache,{templateCaches:{},get:function(a){var b=this.templateCaches[a];return b||(b=new f.TemplateCache(a),this.templateCaches[a]=b),b.load()},clear:function(){var a,b=d(arguments),c=b.length;if(c>0)for(a=0;c>a;a++)delete this.templateCaches[b[a]];else this.templateCaches={}}}),c.extend(f.TemplateCache.prototype,{load:function(){if(this.compiledTemplate)return this.compiledTemplate;var a=this.loadTemplate(this.templateId);return this.compiledTemplate=this.compileTemplate(a),this.compiledTemplate},loadTemplate:function(a){var b=f.$(a).html();return b&&0!==b.length||e("Could not find template: '"+a+"'","NoTemplateError"),b},compileTemplate:function(a){return c.template(a)}}),f.Renderer={render:function(a,b){if(!a){var c=new Error("Cannot render the template since it's false, null or undefined.");throw c.name="TemplateNotFoundError",c}var d;return d="function"==typeof a?a:f.TemplateCache.get(a),d(b)}},f.View=b.View.extend({constructor:function(a){c.bindAll(this,"render");var d=Array.prototype.slice.apply(arguments);this.options=c.extend({},this.options,a),this.events=this.normalizeUIKeys(c.result(this,"events")),b.View.prototype.constructor.apply(this,d),f.MonitorDOMRefresh(this),this.listenTo(this,"show",this.onShowCalled,this)},triggerMethod:f.triggerMethod,getTemplate:function(){return f.getOption(this,"template")},mixinTemplateHelpers:function(a){a=a||{};var b=f.getOption(this,"templateHelpers");return c.isFunction(b)&&(b=b.call(this)),c.extend(a,b)},normalizeUIKeys:function(a){return"undefined"!=typeof a?(c.each(c.keys(a),function(b){var c=b.split("@ui.");2===c.length&&(a[c[0]+this.ui[c[1]]]=a[b],delete a[b])},this),a):void 0},configureTriggers:function(){if(this.triggers){var a={},b=this.normalizeUIKeys(c.result(this,"triggers"));return c.each(b,function(b,d){var e=c.isObject(b),f=e?b.event:b;a[d]=function(a){if(a){var c=a.preventDefault,d=a.stopPropagation,g=e?b.preventDefault:c,h=e?b.stopPropagation:d;g&&c&&c.apply(a),h&&d&&d.apply(a)}var i={view:this,model:this.model,collection:this.collection};this.triggerMethod(f,i)}},this),a}},delegateEvents:function(a){this._delegateDOMEvents(a),f.bindEntityEvents(this,this.model,f.getOption(this,"modelEvents")),f.bindEntityEvents(this,this.collection,f.getOption(this,"collectionEvents"))},_delegateDOMEvents:function(a){a=a||this.events,c.isFunction(a)&&(a=a.call(this));var d={},e=this.configureTriggers();c.extend(d,a,e),b.View.prototype.delegateEvents.call(this,d)},undelegateEvents:function(){var a=Array.prototype.slice.call(arguments);b.View.prototype.undelegateEvents.apply(this,a),f.unbindEntityEvents(this,this.model,f.getOption(this,"modelEvents")),f.unbindEntityEvents(this,this.collection,f.getOption(this,"collectionEvents"))},onShowCalled:function(){},close:function(){if(!this.isClosed){var a=this.triggerMethod("before:close");a!==!1&&(this.isClosed=!0,this.triggerMethod("close"),this.unbindUIElements(),this.remove())}},bindUIElements:function(){if(this.ui){this._uiBindings||(this._uiBindings=this.ui);var a=c.result(this,"_uiBindings");this.ui={},c.each(c.keys(a),function(b){var c=a[b];this.ui[b]=this.$(c)},this)}},unbindUIElements:function(){this.ui&&this._uiBindings&&(c.each(this.ui,function(a,b){delete this.ui[b]},this),this.ui=this._uiBindings,delete this._uiBindings)}}),f.ItemView=f.View.extend({constructor:function(){f.View.prototype.constructor.apply(this,d(arguments))},serializeData:function(){var a={};return this.model?a=this.model.toJSON():this.collection&&(a={items:this.collection.toJSON()}),a},render:function(){this.isClosed=!1,this.triggerMethod("before:render",this),this.triggerMethod("item:before:render",this);var a=this.serializeData();a=this.mixinTemplateHelpers(a);var b=this.getTemplate(),c=f.Renderer.render(b,a);return this.$el.html(c),this.bindUIElements(),this.triggerMethod("render",this),this.triggerMethod("item:rendered",this),this},close:function(){this.isClosed||(this.triggerMethod("item:before:close"),f.View.prototype.close.apply(this,d(arguments)),this.triggerMethod("item:closed"))}}),f.CollectionView=f.View.extend({itemViewEventPrefix:"itemview",constructor:function(){this._initChildViewStorage(),f.View.prototype.constructor.apply(this,d(arguments)),this._initialEvents(),this.initRenderBuffer()},initRenderBuffer:function(){this.elBuffer=document.createDocumentFragment()},startBuffering:function(){this.initRenderBuffer(),this.isBuffering=!0},endBuffering:function(){this.appendBuffer(this,this.elBuffer),this.initRenderBuffer(),this.isBuffering=!1},_initialEvents:function(){this.collection&&(this.listenTo(this.collection,"add",this.addChildView,this),this.listenTo(this.collection,"remove",this.removeItemView,this),this.listenTo(this.collection,"reset",this.render,this))},addChildView:function(a){this.closeEmptyView();var b=this.getItemView(a),c=this.collection.indexOf(a);this.addItemView(a,b,c)},onShowCalled:function(){this.children.each(function(a){f.triggerMethod.call(a,"show")})},triggerBeforeRender:function(){this.triggerMethod("before:render",this),this.triggerMethod("collection:before:render",this)},triggerRendered:function(){this.triggerMethod("render",this),this.triggerMethod("collection:rendered",this)},render:function(){return this.isClosed=!1,this.triggerBeforeRender(),this._renderChildren(),this.triggerRendered(),this},_renderChildren:function(){this.startBuffering(),this.closeEmptyView(),this.closeChildren(),this.collection&&this.collection.length>0?this.showCollection():this.showEmptyView(),this.endBuffering()},showCollection:function(){var a;this.collection.each(function(b,c){a=this.getItemView(b),this.addItemView(b,a,c)},this)},showEmptyView:function(){var a=this.getEmptyView();if(a&&!this._showingEmptyView){this._showingEmptyView=!0;var c=new b.Model;this.addItemView(c,a,0)}},closeEmptyView:function(){this._showingEmptyView&&(this.closeChildren(),delete this._showingEmptyView)},getEmptyView:function(){return f.getOption(this,"emptyView")},getItemView:function(){var a=f.getOption(this,"itemView");return a||e("An `itemView` must be specified","NoItemViewError"),a},addItemView:function(a,b,d){var e=f.getOption(this,"itemViewOptions");c.isFunction(e)&&(e=e.call(this,a,d));var g=this.buildItemView(a,b,e);this.addChildViewEventForwarding(g),this.triggerMethod("before:item:added",g),this.children.add(g),this.renderItemView(g,d),this._isShown&&f.triggerMethod.call(g,"show"),this.triggerMethod("after:item:added",g)},addChildViewEventForwarding:function(a){var b=f.getOption(this,"itemViewEventPrefix");this.listenTo(a,"all",function(){var c=d(arguments);c[0]=b+":"+c[0],c.splice(1,0,a),f.triggerMethod.apply(this,c)},this)},renderItemView:function(a,b){a.render(),this.appendHtml(this,a,b)},buildItemView:function(a,b,d){var e=c.extend({model:a},d);return new b(e)},removeItemView:function(a){var b=this.children.findByModel(a);this.removeChildView(b),this.checkEmpty()},removeChildView:function(a){a&&(this.stopListening(a),a.close?a.close():a.remove&&a.remove(),this.children.remove(a)),this.triggerMethod("item:removed",a)},checkEmpty:function(){this.collection&&0!==this.collection.length||this.showEmptyView()},appendBuffer:function(a,b){a.$el.append(b)},appendHtml:function(a,b){a.isBuffering?a.elBuffer.appendChild(b.el):a.$el.append(b.el)},_initChildViewStorage:function(){this.children=new b.ChildViewContainer},close:function(){this.isClosed||(this.triggerMethod("collection:before:close"),this.closeChildren(),this.triggerMethod("collection:closed"),f.View.prototype.close.apply(this,d(arguments)))},closeChildren:function(){this.children.each(function(a){this.removeChildView(a)},this),this.checkEmpty()}}),f.CompositeView=f.CollectionView.extend({constructor:function(){f.CollectionView.prototype.constructor.apply(this,d(arguments))},_initialEvents:function(){this.once("render",function(){this.collection&&(this.listenTo(this.collection,"add",this.addChildView,this),this.listenTo(this.collection,"remove",this.removeItemView,this),this.listenTo(this.collection,"reset",this._renderChildren,this))})},getItemView:function(){var a=f.getOption(this,"itemView")||this.constructor;return a||e("An `itemView` must be specified","NoItemViewError"),a},serializeData:function(){var a={};return this.model&&(a=this.model.toJSON()),a},render:function(){this.isRendered=!0,this.isClosed=!1,this.resetItemViewContainer(),this.triggerBeforeRender();var a=this.renderModel();return this.$el.html(a),this.bindUIElements(),this.triggerMethod("composite:model:rendered"),this._renderChildren(),this.triggerMethod("composite:rendered"),this.triggerRendered(),this},_renderChildren:function(){this.isRendered&&(f.CollectionView.prototype._renderChildren.call(this),this.triggerMethod("composite:collection:rendered"))},renderModel:function(){var a={};a=this.serializeData(),a=this.mixinTemplateHelpers(a);var b=this.getTemplate();return f.Renderer.render(b,a)},appendBuffer:function(a,b){var c=this.getItemViewContainer(a);c.append(b)},appendHtml:function(a,b){if(a.isBuffering)a.elBuffer.appendChild(b.el);else{var c=this.getItemViewContainer(a);c.append(b.el)}},getItemViewContainer:function(a){if("$itemViewContainer"in a)return a.$itemViewContainer;var b,d=f.getOption(a,"itemViewContainer");if(d){var g=c.isFunction(d)?d():d;b=a.$(g),b.length<=0&&e("The specified `itemViewContainer` was not found: "+a.itemViewContainer,"ItemViewContainerMissingError")}else b=a.$el;return a.$itemViewContainer=b,b},resetItemViewContainer:function(){this.$itemViewContainer&&delete this.$itemViewContainer}}),f.Layout=f.ItemView.extend({regionType:f.Region,constructor:function(a){a=a||{},this._firstRender=!0,this._initializeRegions(a),f.ItemView.prototype.constructor.call(this,a)},render:function(){this.isClosed&&this._initializeRegions(),this._firstRender?this._firstRender=!1:this.isClosed||this._reInitializeRegions();var a=Array.prototype.slice.apply(arguments),b=f.ItemView.prototype.render.apply(this,a);return b},close:function(){if(!this.isClosed){this.regionManager.close();var a=Array.prototype.slice.apply(arguments);f.ItemView.prototype.close.apply(this,a)}},addRegion:function(a,b){var c={};return c[a]=b,this._buildRegions(c)[a]},addRegions:function(a){return this.regions=c.extend({},this.regions,a),this._buildRegions(a)},removeRegion:function(a){return delete this.regions[a],this.regionManager.removeRegion(a)},_buildRegions:function(a){var b=this,c={regionType:f.getOption(this,"regionType"),parentEl:function(){return b.$el}};return this.regionManager.addRegions(a,c)},_initializeRegions:function(a){var b;this._initRegionManager(),b=c.isFunction(this.regions)?this.regions(a):this.regions||{},this.addRegions(b)},_reInitializeRegions:function(){this.regionManager.closeRegions(),this.regionManager.each(function(a){a.reset()})},_initRegionManager:function(){this.regionManager=new f.RegionManager,this.listenTo(this.regionManager,"region:add",function(a,b){this[a]=b,this.trigger("region:add",a,b)}),this.listenTo(this.regionManager,"region:remove",function(a,b){delete this[a],this.trigger("region:remove",a,b)})}}),f.AppRouter=b.Router.extend({constructor:function(a){b.Router.prototype.constructor.apply(this,d(arguments)),this.options=a||{};var c=f.getOption(this,"appRoutes"),e=this._getController();this.processAppRoutes(e,c)},appRoute:function(a,b){var c=this._getController();this._addAppRoute(c,a,b)},processAppRoutes:function(a,b){if(b){var d=c.keys(b).reverse();c.each(d,function(c){this._addAppRoute(a,c,b[c])},this)}},_getController:function(){return f.getOption(this,"controller")},_addAppRoute:function(a,b,d){var e=a[d];if(!e)throw new Error("Method '"+d+"' was not found on the controller");this.route(b,d,c.bind(e,a))}}),f.Application=function(a){this._initRegionManager(),this._initCallbacks=new f.Callbacks,this.vent=new b.Wreqr.EventAggregator,this.commands=new b.Wreqr.Commands,this.reqres=new b.Wreqr.RequestResponse,this.submodules={},c.extend(this,a),this.triggerMethod=f.triggerMethod},c.extend(f.Application.prototype,b.Events,{execute:function(){var a=Array.prototype.slice.apply(arguments);this.commands.execute.apply(this.commands,a)},request:function(){var a=Array.prototype.slice.apply(arguments);return this.reqres.request.apply(this.reqres,a)},addInitializer:function(a){this._initCallbacks.add(a)},start:function(a){this.triggerMethod("initialize:before",a),this._initCallbacks.run(a,this),this.triggerMethod("initialize:after",a),this.triggerMethod("start",a)},addRegions:function(a){return this._regionManager.addRegions(a)},closeRegions:function(){this._regionManager.closeRegions()},removeRegion:function(a){this._regionManager.removeRegion(a)},getRegion:function(a){return this._regionManager.get(a)},module:function(){var a=d(arguments);return a.unshift(this),f.Module.create.apply(f.Module,a)},_initRegionManager:function(){this._regionManager=new f.RegionManager,this.listenTo(this._regionManager,"region:add",function(a,b){this[a]=b}),this.listenTo(this._regionManager,"region:remove",function(a){delete this[a]})}}),f.Application.extend=f.extend,f.Module=function(a,b){this.moduleName=a,this.submodules={},this._setupInitializersAndFinalizers(),this.app=b,this.startWithParent=!0,this.triggerMethod=f.triggerMethod},c.extend(f.Module.prototype,b.Events,{addInitializer:function(a){this._initializerCallbacks.add(a)},addFinalizer:function(a){this._finalizerCallbacks.add(a)},start:function(a){this._isInitialized||(c.each(this.submodules,function(b){b.startWithParent&&b.start(a)}),this.triggerMethod("before:start",a),this._initializerCallbacks.run(a,this),this._isInitialized=!0,this.triggerMethod("start",a))},stop:function(){this._isInitialized&&(this._isInitialized=!1,f.triggerMethod.call(this,"before:stop"),c.each(this.submodules,function(a){a.stop()}),this._finalizerCallbacks.run(void 0,this),this._initializerCallbacks.reset(),this._finalizerCallbacks.reset(),f.triggerMethod.call(this,"stop"))},addDefinition:function(a,b){this._runModuleDefinition(a,b)},_runModuleDefinition:function(a,d){if(a){var e=c.flatten([this,this.app,b,f,f.$,c,d]);a.apply(this,e)}},_setupInitializersAndFinalizers:function(){this._initializerCallbacks=new f.Callbacks,this._finalizerCallbacks=new f.Callbacks}}),c.extend(f.Module,{create:function(a,b,e){var f=a,g=d(arguments);g.splice(0,3),b=b.split(".");var h=b.length,i=[];return i[h-1]=e,c.each(b,function(b,c){var d=f;f=this._getModule(d,b,a),this._addModuleDefinition(d,f,i[c],g)},this),f},_getModule:function(a,b,c){var d=a[b];return d||(d=new f.Module(b,c),a[b]=d,a.submodules[b]=d),d},_addModuleDefinition:function(a,b,d,e){var f,g;c.isFunction(d)?(f=d,g=!0):c.isObject(d)?(f=d.define,g=d.startWithParent):g=!0,f&&b.addDefinition(f,e),b.startWithParent=b.startWithParent&&g,b.startWithParent&&!b.startWithParentIsConfigured&&(b.startWithParentIsConfigured=!0,a.addInitializer(function(a){b.startWithParent&&b.start(a)}))}}),f}(this,Backbone,_); +Backbone.ChildViewContainer=function(a,b){var c=function(a){this._views={},this._indexByModel={},this._indexByCustom={},this._updateLength(),b.each(a,this.add,this)};b.extend(c.prototype,{add:function(a,b){var c=a.cid;this._views[c]=a,a.model&&(this._indexByModel[a.model.cid]=c),b&&(this._indexByCustom[b]=c),this._updateLength()},findByModel:function(a){return this.findByModelCid(a.cid)},findByModelCid:function(a){var b=this._indexByModel[a];return this.findByCid(b)},findByCustom:function(a){var b=this._indexByCustom[a];return this.findByCid(b)},findByIndex:function(a){return b.values(this._views)[a]},findByCid:function(a){return this._views[a]},remove:function(a){var c=a.cid;a.model&&delete this._indexByModel[a.model.cid],b.any(this._indexByCustom,function(a,b){return a===c?(delete this._indexByCustom[b],!0):void 0},this),delete this._views[c],this._updateLength()},call:function(a){this.apply(a,b.tail(arguments))},apply:function(a,c){b.each(this._views,function(d){b.isFunction(d[a])&&d[a].apply(d,c||[])})},_updateLength:function(){this.length=b.size(this._views)}});var d=["forEach","each","map","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","toArray","first","initial","rest","last","without","isEmpty","pluck"];return b.each(d,function(a){c.prototype[a]=function(){var c=b.values(this._views),d=[c].concat(b.toArray(arguments));return b[a].apply(b,d)}}),c}(Backbone,_),Backbone.Wreqr=function(a,b,c){"use strict";var d={};return d.Handlers=function(a,b){var c=function(a){this.options=a,this._wreqrHandlers={},b.isFunction(this.initialize)&&this.initialize(a)};return c.extend=a.Model.extend,b.extend(c.prototype,a.Events,{setHandlers:function(a){b.each(a,function(a,c){var d=null;b.isObject(a)&&!b.isFunction(a)&&(d=a.context,a=a.callback),this.setHandler(c,a,d)},this)},setHandler:function(a,b,c){var d={callback:b,context:c};this._wreqrHandlers[a]=d,this.trigger("handler:add",a,b,c)},hasHandler:function(a){return!!this._wreqrHandlers[a]},getHandler:function(a){var b=this._wreqrHandlers[a];if(!b)throw new Error("Handler not found for '"+a+"'");return function(){var a=Array.prototype.slice.apply(arguments);return b.callback.apply(b.context,a)}},removeHandler:function(a){delete this._wreqrHandlers[a]},removeAllHandlers:function(){this._wreqrHandlers={}}}),c}(a,c),d.CommandStorage=function(){var b=function(a){this.options=a,this._commands={},c.isFunction(this.initialize)&&this.initialize(a)};return c.extend(b.prototype,a.Events,{getCommands:function(a){var b=this._commands[a];return b||(b={command:a,instances:[]},this._commands[a]=b),b},addCommand:function(a,b){var c=this.getCommands(a);c.instances.push(b)},clearCommands:function(a){var b=this.getCommands(a);b.instances=[]}}),b}(),d.Commands=function(a){return a.Handlers.extend({storageType:a.CommandStorage,constructor:function(b){this.options=b||{},this._initializeStorage(this.options),this.on("handler:add",this._executeCommands,this);var c=Array.prototype.slice.call(arguments);a.Handlers.prototype.constructor.apply(this,c)},execute:function(a,b){a=arguments[0],b=Array.prototype.slice.call(arguments,1),this.hasHandler(a)?this.getHandler(a).apply(this,b):this.storage.addCommand(a,b)},_executeCommands:function(a,b,d){var e=this.storage.getCommands(a);c.each(e.instances,function(a){b.apply(d,a)}),this.storage.clearCommands(a)},_initializeStorage:function(a){var b,d=a.storageType||this.storageType;b=c.isFunction(d)?new d:d,this.storage=b}})}(d),d.RequestResponse=function(a){return a.Handlers.extend({request:function(){var a=arguments[0],b=Array.prototype.slice.call(arguments,1);return this.getHandler(a).apply(this,b)}})}(d),d.EventAggregator=function(a,b){var c=function(){};return c.extend=a.Model.extend,b.extend(c.prototype,a.Events),c}(a,c),d}(Backbone,Backbone.Marionette,_);var Marionette=function(a,b,c){"use strict";function d(a){return g.call(a)}function e(a,b){var c=new Error(a);throw c.name=b||"Error",c}var f={};b.Marionette=f,f.$=b.$;var g=Array.prototype.slice;return f.extend=b.Model.extend,f.getOption=function(a,b){if(a&&b){var c;return c=a.options&&b in a.options&&void 0!==a.options[b]?a.options[b]:a[b]}},f.triggerMethod=function(){function a(a,b,c){return c.toUpperCase()}var b=/(^|:)(\w)/gi,d=function(d){var e="on"+d.replace(b,a),f=this[e];return c.isFunction(this.trigger)&&this.trigger.apply(this,arguments),c.isFunction(f)?f.apply(this,c.tail(arguments)):void 0};return d}(),f.MonitorDOMRefresh=function(a){function b(a){a._isShown=!0,e(a)}function d(a){a._isRendered=!0,e(a)}function e(a){a._isShown&&a._isRendered&&f(a)&&c.isFunction(a.triggerMethod)&&a.triggerMethod("dom:refresh")}function f(b){return a.contains(b.el)}return function(a){a.listenTo(a,"show",function(){b(a)}),a.listenTo(a,"render",function(){d(a)})}}(document.documentElement),function(a){function b(a,b,d,f){var g=f.split(/\s+/);c.each(g,function(c){var f=a[c];f||e("Method '"+c+"' was configured as an event handler, but does not exist."),a.listenTo(b,d,f,a)})}function d(a,b,c,d){a.listenTo(b,c,d,a)}function f(a,b,d,e){var f=e.split(/\s+/);c.each(f,function(c){var e=a[c];a.stopListening(b,d,e,a)})}function g(a,b,c,d){a.stopListening(b,c,d,a)}function h(a,b,d,e,f){b&&d&&(c.isFunction(d)&&(d=d.call(a)),c.each(d,function(d,g){c.isFunction(d)?e(a,b,g,d):f(a,b,g,d)}))}a.bindEntityEvents=function(a,c,e){h(a,c,e,d,b)},a.unbindEntityEvents=function(a,b,c){h(a,b,c,g,f)}}(f),f.Callbacks=function(){this._deferred=f.$.Deferred(),this._callbacks=[]},c.extend(f.Callbacks.prototype,{add:function(a,b){this._callbacks.push({cb:a,ctx:b}),this._deferred.done(function(c,d){b&&(c=b),a.call(c,d)})},run:function(a,b){this._deferred.resolve(b,a)},reset:function(){var a=this._callbacks;this._deferred=f.$.Deferred(),this._callbacks=[],c.each(a,function(a){this.add(a.cb,a.ctx)},this)}}),f.Controller=function(a){this.triggerMethod=f.triggerMethod,this.options=a||{},c.isFunction(this.initialize)&&this.initialize(this.options)},f.Controller.extend=f.extend,c.extend(f.Controller.prototype,b.Events,{close:function(){this.stopListening(),this.triggerMethod("close"),this.unbind()}}),f.Region=function(a){if(this.options=a||{},this.el=f.getOption(this,"el"),!this.el){var b=new Error("An 'el' must be specified for a region.");throw b.name="NoElError",b}if(this.initialize){var c=Array.prototype.slice.apply(arguments);this.initialize.apply(this,c)}},c.extend(f.Region,{buildRegion:function(a,b){var d="string"==typeof a,e="string"==typeof a.selector,f="undefined"==typeof a.regionType,g="function"==typeof a;if(!g&&!d&&!e)throw new Error("Region must be specified as a Region type, a selector string or an object with selector property");var h,i;d&&(h=a),a.selector&&(h=a.selector),g&&(i=a),!g&&f&&(i=b),a.regionType&&(i=a.regionType);var j=new i({el:h});return a.parentEl&&(j.getEl=function(b){var d=a.parentEl;return c.isFunction(d)&&(d=d()),d.find(b)}),j}}),c.extend(f.Region.prototype,b.Events,{show:function(a){this.ensureEl();var b=a.isClosed||c.isUndefined(a.$el),d=a!==this.currentView;d&&this.close(),a.render(),(d||b)&&this.open(a),this.currentView=a,f.triggerMethod.call(this,"show",a),f.triggerMethod.call(a,"show")},ensureEl:function(){this.$el&&0!==this.$el.length||(this.$el=this.getEl(this.el))},getEl:function(a){return f.$(a)},open:function(a){this.$el.empty().append(a.el)},close:function(){var a=this.currentView;a&&!a.isClosed&&(a.close?a.close():a.remove&&a.remove(),f.triggerMethod.call(this,"close",a),delete this.currentView)},attachView:function(a){this.currentView=a},reset:function(){this.close(),delete this.$el}}),f.Region.extend=f.extend,f.RegionManager=function(a){var b=a.Controller.extend({constructor:function(b){this._regions={},a.Controller.prototype.constructor.call(this,b)},addRegions:function(a,b){var d={};return c.each(a,function(a,e){"string"==typeof a&&(a={selector:a}),a.selector&&(a=c.defaults({},a,b));var f=this.addRegion(e,a);d[e]=f},this),d},addRegion:function(b,d){var e,f=c.isObject(d),g=c.isString(d),h=!!d.selector;return e=g||f&&h?a.Region.buildRegion(d,a.Region):c.isFunction(d)?a.Region.buildRegion(d,a.Region):d,this._store(b,e),this.triggerMethod("region:add",b,e),e},get:function(a){return this._regions[a]},removeRegion:function(a){var b=this._regions[a];this._remove(a,b)},removeRegions:function(){c.each(this._regions,function(a,b){this._remove(b,a)},this)},closeRegions:function(){c.each(this._regions,function(a){a.close()},this)},close:function(){this.removeRegions();var b=Array.prototype.slice.call(arguments);a.Controller.prototype.close.apply(this,b)},_store:function(a,b){this._regions[a]=b,this._setLength()},_remove:function(a,b){b.close(),delete this._regions[a],this._setLength(),this.triggerMethod("region:remove",a,b)},_setLength:function(){this.length=c.size(this._regions)}}),d=["forEach","each","map","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","toArray","first","initial","rest","last","without","isEmpty","pluck"];return c.each(d,function(a){b.prototype[a]=function(){var b=c.values(this._regions),d=[b].concat(c.toArray(arguments));return c[a].apply(c,d)}}),b}(f),f.TemplateCache=function(a){this.templateId=a},c.extend(f.TemplateCache,{templateCaches:{},get:function(a){var b=this.templateCaches[a];return b||(b=new f.TemplateCache(a),this.templateCaches[a]=b),b.load()},clear:function(){var a,b=d(arguments),c=b.length;if(c>0)for(a=0;c>a;a++)delete this.templateCaches[b[a]];else this.templateCaches={}}}),c.extend(f.TemplateCache.prototype,{load:function(){if(this.compiledTemplate)return this.compiledTemplate;var a=this.loadTemplate(this.templateId);return this.compiledTemplate=this.compileTemplate(a),this.compiledTemplate},loadTemplate:function(a){var b=f.$(a).html();return b&&0!==b.length||e("Could not find template: '"+a+"'","NoTemplateError"),b},compileTemplate:function(a){return c.template(a)}}),f.Renderer={render:function(a,b){if(!a){var c=new Error("Cannot render the template since it's false, null or undefined.");throw c.name="TemplateNotFoundError",c}var d;return d="function"==typeof a?a:f.TemplateCache.get(a),d(b)}},f.View=b.View.extend({constructor:function(a){c.bindAll(this,"render");var d=Array.prototype.slice.apply(arguments);this.options=c.extend({},c.result(this,"options"),c.isFunction(a)?a.call(this):a),this.events=this.normalizeUIKeys(c.result(this,"events")),b.View.prototype.constructor.apply(this,d),f.MonitorDOMRefresh(this),this.listenTo(this,"show",this.onShowCalled,this)},triggerMethod:f.triggerMethod,getTemplate:function(){return f.getOption(this,"template")},mixinTemplateHelpers:function(a){a=a||{};var b=f.getOption(this,"templateHelpers");return c.isFunction(b)&&(b=b.call(this)),c.extend(a,b)},normalizeUIKeys:function(a){return"undefined"!=typeof a?(c.each(c.keys(a),function(b){var c=b.split("@ui.");2===c.length&&(a[c[0]+this.ui[c[1]]]=a[b],delete a[b])},this),a):void 0},configureTriggers:function(){if(this.triggers){var a={},b=this.normalizeUIKeys(c.result(this,"triggers"));return c.each(b,function(b,d){var e=c.isObject(b),f=e?b.event:b;a[d]=function(a){if(a){var c=a.preventDefault,d=a.stopPropagation,g=e?b.preventDefault:c,h=e?b.stopPropagation:d;g&&c&&c.apply(a),h&&d&&d.apply(a)}var i={view:this,model:this.model,collection:this.collection};this.triggerMethod(f,i)}},this),a}},delegateEvents:function(a){this._delegateDOMEvents(a),f.bindEntityEvents(this,this.model,f.getOption(this,"modelEvents")),f.bindEntityEvents(this,this.collection,f.getOption(this,"collectionEvents"))},_delegateDOMEvents:function(a){a=a||this.events,c.isFunction(a)&&(a=a.call(this));var d={},e=this.configureTriggers();c.extend(d,a,e),b.View.prototype.delegateEvents.call(this,d)},undelegateEvents:function(){var a=Array.prototype.slice.call(arguments);b.View.prototype.undelegateEvents.apply(this,a),f.unbindEntityEvents(this,this.model,f.getOption(this,"modelEvents")),f.unbindEntityEvents(this,this.collection,f.getOption(this,"collectionEvents"))},onShowCalled:function(){},close:function(){if(!this.isClosed){var a=this.triggerMethod("before:close");a!==!1&&(this.isClosed=!0,this.triggerMethod("close"),this.unbindUIElements(),this.remove())}},bindUIElements:function(){if(this.ui){this._uiBindings||(this._uiBindings=this.ui);var a=c.result(this,"_uiBindings");this.ui={},c.each(c.keys(a),function(b){var c=a[b];this.ui[b]=this.$(c)},this)}},unbindUIElements:function(){this.ui&&this._uiBindings&&(c.each(this.ui,function(a,b){delete this.ui[b]},this),this.ui=this._uiBindings,delete this._uiBindings)}}),f.ItemView=f.View.extend({constructor:function(){f.View.prototype.constructor.apply(this,d(arguments))},serializeData:function(){var a={};return this.model?a=this.model.toJSON():this.collection&&(a={items:this.collection.toJSON()}),a},render:function(){this.isClosed=!1,this.triggerMethod("before:render",this),this.triggerMethod("item:before:render",this);var a=this.serializeData();a=this.mixinTemplateHelpers(a);var b=this.getTemplate(),c=f.Renderer.render(b,a);return this.$el.html(c),this.bindUIElements(),this.triggerMethod("render",this),this.triggerMethod("item:rendered",this),this},close:function(){this.isClosed||(this.triggerMethod("item:before:close"),f.View.prototype.close.apply(this,d(arguments)),this.triggerMethod("item:closed"))}}),f.CollectionView=f.View.extend({itemViewEventPrefix:"itemview",constructor:function(){this._initChildViewStorage(),f.View.prototype.constructor.apply(this,d(arguments)),this._initialEvents(),this.initRenderBuffer()},initRenderBuffer:function(){this.elBuffer=document.createDocumentFragment()},startBuffering:function(){this.initRenderBuffer(),this.isBuffering=!0},endBuffering:function(){this.appendBuffer(this,this.elBuffer),this.initRenderBuffer(),this.isBuffering=!1},_initialEvents:function(){this.collection&&(this.listenTo(this.collection,"add",this.addChildView,this),this.listenTo(this.collection,"remove",this.removeItemView,this),this.listenTo(this.collection,"reset",this.render,this))},addChildView:function(a){this.closeEmptyView();var b=this.getItemView(a),c=this.collection.indexOf(a);this.addItemView(a,b,c)},onShowCalled:function(){this.children.each(function(a){f.triggerMethod.call(a,"show")})},triggerBeforeRender:function(){this.triggerMethod("before:render",this),this.triggerMethod("collection:before:render",this)},triggerRendered:function(){this.triggerMethod("render",this),this.triggerMethod("collection:rendered",this)},render:function(){return this.isClosed=!1,this.triggerBeforeRender(),this._renderChildren(),this.triggerRendered(),this},_renderChildren:function(){this.startBuffering(),this.closeEmptyView(),this.closeChildren(),this.collection&&this.collection.length>0?this.showCollection():this.showEmptyView(),this.endBuffering()},showCollection:function(){var a;this.collection.each(function(b,c){a=this.getItemView(b),this.addItemView(b,a,c)},this)},showEmptyView:function(){var a=this.getEmptyView();if(a&&!this._showingEmptyView){this._showingEmptyView=!0;var c=new b.Model;this.addItemView(c,a,0)}},closeEmptyView:function(){this._showingEmptyView&&(this.closeChildren(),delete this._showingEmptyView)},getEmptyView:function(){return f.getOption(this,"emptyView")},getItemView:function(){var a=f.getOption(this,"itemView");return a||e("An `itemView` must be specified","NoItemViewError"),a},addItemView:function(a,b,d){var e=f.getOption(this,"itemViewOptions");c.isFunction(e)&&(e=e.call(this,a,d));var g=this.buildItemView(a,b,e);return this.addChildViewEventForwarding(g),this.triggerMethod("before:item:added",g),this.children.add(g),this.renderItemView(g,d),this._isShown&&!this.isBuffering&&f.triggerMethod.call(g,"show"),this.triggerMethod("after:item:added",g),g},addChildViewEventForwarding:function(a){var b=f.getOption(this,"itemViewEventPrefix");this.listenTo(a,"all",function(){var e=d(arguments),g=e[0],h=this.getItemEvents();e[0]=b+":"+g,e.splice(1,0,a),"undefined"!=typeof h&&c.isFunction(h[g])&&h[g].apply(this,e),f.triggerMethod.apply(this,e)},this)},getItemEvents:function(){return c.isFunction(this.itemEvents)?this.itemEvents.call(this):this.itemEvents},renderItemView:function(a,b){a.render(),this.appendHtml(this,a,b)},buildItemView:function(a,b,d){var e=c.extend({model:a},d);return new b(e)},removeItemView:function(a){var b=this.children.findByModel(a);this.removeChildView(b),this.checkEmpty()},removeChildView:function(a){a&&(this.stopListening(a),a.close?a.close():a.remove&&a.remove(),this.children.remove(a)),this.triggerMethod("item:removed",a)},checkEmpty:function(){this.collection&&0!==this.collection.length||this.showEmptyView()},appendBuffer:function(a,b){a.$el.append(b)},appendHtml:function(a,b){a.isBuffering?a.elBuffer.appendChild(b.el):a.$el.append(b.el)},_initChildViewStorage:function(){this.children=new b.ChildViewContainer},close:function(){this.isClosed||(this.triggerMethod("collection:before:close"),this.closeChildren(),this.triggerMethod("collection:closed"),f.View.prototype.close.apply(this,d(arguments)))},closeChildren:function(){this.children.each(function(a){this.removeChildView(a)},this),this.checkEmpty()}}),f.CompositeView=f.CollectionView.extend({constructor:function(){f.CollectionView.prototype.constructor.apply(this,d(arguments))},_initialEvents:function(){this.once("render",function(){this.collection&&(this.listenTo(this.collection,"add",this.addChildView,this),this.listenTo(this.collection,"remove",this.removeItemView,this),this.listenTo(this.collection,"reset",this._renderChildren,this))})},getItemView:function(){var a=f.getOption(this,"itemView")||this.constructor;return a||e("An `itemView` must be specified","NoItemViewError"),a},serializeData:function(){var a={};return this.model&&(a=this.model.toJSON()),a},render:function(){this.isRendered=!0,this.isClosed=!1,this.resetItemViewContainer(),this.triggerBeforeRender();var a=this.renderModel();return this.$el.html(a),this.bindUIElements(),this.triggerMethod("composite:model:rendered"),this._renderChildren(),this.triggerMethod("composite:rendered"),this.triggerRendered(),this},_renderChildren:function(){this.isRendered&&(f.CollectionView.prototype._renderChildren.call(this),this.triggerMethod("composite:collection:rendered"))},renderModel:function(){var a={};a=this.serializeData(),a=this.mixinTemplateHelpers(a);var b=this.getTemplate();return f.Renderer.render(b,a)},appendBuffer:function(a,b){var c=this.getItemViewContainer(a);c.append(b)},appendHtml:function(a,b){if(a.isBuffering)a.elBuffer.appendChild(b.el);else{var c=this.getItemViewContainer(a);c.append(b.el)}},getItemViewContainer:function(a){if("$itemViewContainer"in a)return a.$itemViewContainer;var b,d=f.getOption(a,"itemViewContainer");if(d){var g=c.isFunction(d)?d.call(this):d;b=a.$(g),b.length<=0&&e("The specified `itemViewContainer` was not found: "+a.itemViewContainer,"ItemViewContainerMissingError")}else b=a.$el;return a.$itemViewContainer=b,b},resetItemViewContainer:function(){this.$itemViewContainer&&delete this.$itemViewContainer}}),f.Layout=f.ItemView.extend({regionType:f.Region,constructor:function(a){a=a||{},this._firstRender=!0,this._initializeRegions(a),f.ItemView.prototype.constructor.call(this,a)},render:function(){this.isClosed&&this._initializeRegions(),this._firstRender?this._firstRender=!1:this.isClosed||this._reInitializeRegions();var a=Array.prototype.slice.apply(arguments),b=f.ItemView.prototype.render.apply(this,a);return b},close:function(){if(!this.isClosed){this.regionManager.close();var a=Array.prototype.slice.apply(arguments);f.ItemView.prototype.close.apply(this,a)}},addRegion:function(a,b){var c={};return c[a]=b,this._buildRegions(c)[a]},addRegions:function(a){return this.regions=c.extend({},this.regions,a),this._buildRegions(a)},removeRegion:function(a){return delete this.regions[a],this.regionManager.removeRegion(a)},_buildRegions:function(a){var b=this,c={regionType:f.getOption(this,"regionType"),parentEl:function(){return b.$el}};return this.regionManager.addRegions(a,c)},_initializeRegions:function(a){var b;this._initRegionManager(),b=c.isFunction(this.regions)?this.regions(a):this.regions||{},this.addRegions(b)},_reInitializeRegions:function(){this.regionManager.closeRegions(),this.regionManager.each(function(a){a.reset()})},_initRegionManager:function(){this.regionManager=new f.RegionManager,this.listenTo(this.regionManager,"region:add",function(a,b){this[a]=b,this.trigger("region:add",a,b)}),this.listenTo(this.regionManager,"region:remove",function(a,b){delete this[a],this.trigger("region:remove",a,b)})}}),f.AppRouter=b.Router.extend({constructor:function(a){b.Router.prototype.constructor.apply(this,d(arguments)),this.options=a||{};var c=f.getOption(this,"appRoutes"),e=this._getController();this.processAppRoutes(e,c)},appRoute:function(a,b){var c=this._getController();this._addAppRoute(c,a,b)},processAppRoutes:function(a,b){if(b){var d=c.keys(b).reverse();c.each(d,function(c){this._addAppRoute(a,c,b[c])},this)}},_getController:function(){return f.getOption(this,"controller")},_addAppRoute:function(a,b,d){var e=a[d];if(!e)throw new Error("Method '"+d+"' was not found on the controller");this.route(b,d,c.bind(e,a))}}),f.Application=function(a){this._initRegionManager(),this._initCallbacks=new f.Callbacks,this.vent=new b.Wreqr.EventAggregator,this.commands=new b.Wreqr.Commands,this.reqres=new b.Wreqr.RequestResponse,this.submodules={},c.extend(this,a),this.triggerMethod=f.triggerMethod},c.extend(f.Application.prototype,b.Events,{execute:function(){var a=Array.prototype.slice.apply(arguments);this.commands.execute.apply(this.commands,a)},request:function(){var a=Array.prototype.slice.apply(arguments);return this.reqres.request.apply(this.reqres,a)},addInitializer:function(a){this._initCallbacks.add(a)},start:function(a){this.triggerMethod("initialize:before",a),this._initCallbacks.run(a,this),this.triggerMethod("initialize:after",a),this.triggerMethod("start",a)},addRegions:function(a){return this._regionManager.addRegions(a)},closeRegions:function(){this._regionManager.closeRegions()},removeRegion:function(a){this._regionManager.removeRegion(a)},getRegion:function(a){return this._regionManager.get(a)},module:function(){var a=d(arguments);return a.unshift(this),f.Module.create.apply(f.Module,a)},_initRegionManager:function(){this._regionManager=new f.RegionManager,this.listenTo(this._regionManager,"region:add",function(a,b){this[a]=b}),this.listenTo(this._regionManager,"region:remove",function(a){delete this[a]})}}),f.Application.extend=f.extend,f.Module=function(a,b){this.moduleName=a,this.submodules={},this._setupInitializersAndFinalizers(),this.app=b,this.startWithParent=!0,this.triggerMethod=f.triggerMethod},c.extend(f.Module.prototype,b.Events,{addInitializer:function(a){this._initializerCallbacks.add(a)},addFinalizer:function(a){this._finalizerCallbacks.add(a)},start:function(a){this._isInitialized||(c.each(this.submodules,function(b){b.startWithParent&&b.start(a)}),this.triggerMethod("before:start",a),this._initializerCallbacks.run(a,this),this._isInitialized=!0,this.triggerMethod("start",a))},stop:function(){this._isInitialized&&(this._isInitialized=!1,f.triggerMethod.call(this,"before:stop"),c.each(this.submodules,function(a){a.stop()}),this._finalizerCallbacks.run(void 0,this),this._initializerCallbacks.reset(),this._finalizerCallbacks.reset(),f.triggerMethod.call(this,"stop"))},addDefinition:function(a,b){this._runModuleDefinition(a,b)},_runModuleDefinition:function(a,d){if(a){var e=c.flatten([this,this.app,b,f,f.$,c,d]);a.apply(this,e)}},_setupInitializersAndFinalizers:function(){this._initializerCallbacks=new f.Callbacks,this._finalizerCallbacks=new f.Callbacks}}),c.extend(f.Module,{create:function(a,b,e){var f=a,g=d(arguments);g.splice(0,3),b=b.split(".");var h=b.length,i=[];return i[h-1]=e,c.each(b,function(b,c){var d=f;f=this._getModule(d,b,a),this._addModuleDefinition(d,f,i[c],g)},this),f},_getModule:function(a,b,c){var d=a[b];return d||(d=new f.Module(b,c),a[b]=d,a.submodules[b]=d),d},_addModuleDefinition:function(a,b,d,e){var f,g;c.isFunction(d)?(f=d,g=!0):c.isObject(d)?(f=d.define,g=d.startWithParent):g=!0,f&&b.addDefinition(f,e),b.startWithParent=b.startWithParent&&g,b.startWithParent&&!b.startWithParentIsConfigured&&(b.startWithParentIsConfigured=!0,a.addInitializer(function(a){b.startWithParent&&b.start(a)}))}}),f}(this,Backbone,_); //# sourceMappingURL=backbone.marionette.map \ No newline at end of file diff --git a/lib/core/amd/backbone.marionette.js b/lib/core/amd/backbone.marionette.js index 7e33e6d4ce..75b0a16cdb 100644 --- a/lib/core/amd/backbone.marionette.js +++ b/lib/core/amd/backbone.marionette.js @@ -1,8 +1,8 @@ // MarionetteJS (Backbone.Marionette) // ---------------------------------- -// v1.4.1 +// v1.5.0 // -// Copyright (c)2013 Derick Bailey, Muted Solutions, LLC. +// Copyright (c)2014 Derick Bailey, Muted Solutions, LLC. // Distributed under MIT license // // http://marionettejs.com @@ -31,7 +31,7 @@ define(['underscore', 'backbone', 'backbone.wreqr', 'backbone.babysitter'], factory); - } + } }(this, function (_, Backbone) { var Marionette = (function(global, Backbone, _){ @@ -88,11 +88,11 @@ Marionette.getOption = function(target, optionName){ // `this.triggerMethod("foo")` will trigger the "foo" event and // call the "onFoo" method. // -// `this.triggerMethod("foo:bar") will trigger the "foo:bar" event and +// `this.triggerMethod("foo:bar")` will trigger the "foo:bar" event and // call the "onFooBar" method. Marionette.triggerMethod = (function(){ - // split the event name on the : + // split the event name on the ":" var splitter = /(^|:)(\w)/gi; // take the event section ("section1:section2:section3") @@ -101,7 +101,7 @@ Marionette.triggerMethod = (function(){ return eventName.toUpperCase(); } - // actual triggerMethod name + // actual triggerMethod implementation var triggerMethod = function(event) { // get the method name from the event name var methodName = 'on' + event.replace(splitter, getEventName); @@ -129,7 +129,7 @@ Marionette.triggerMethod = (function(){ // in the DOM, trigger a "dom:refresh" event every time it is // re-rendered. -Marionette.MonitorDOMRefresh = (function(){ +Marionette.MonitorDOMRefresh = (function(documentElement){ // track when the view has been shown in the DOM, // using a Marionette.Region (or by other means of triggering "show") function handleShow(view){ @@ -145,13 +145,17 @@ Marionette.MonitorDOMRefresh = (function(){ // Trigger the "dom:refresh" event and corresponding "onDomRefresh" method function triggerDOMRefresh(view){ - if (view._isShown && view._isRendered){ + if (view._isShown && view._isRendered && isInDOM(view)){ if (_.isFunction(view.triggerMethod)){ view.triggerMethod("dom:refresh"); } } } + function isInDOM(view) { + return documentElement.contains(view.el); + } + // Export public API return function(view){ view.listenTo(view, "show", function(){ @@ -162,7 +166,7 @@ Marionette.MonitorDOMRefresh = (function(){ handleRender(view); }); }; -})(); +})(document.documentElement); // Marionette.bindEntityEvents & unbindEntityEvents @@ -501,7 +505,7 @@ _.extend(Marionette.Region.prototype, Backbone.Events, { if (view.close) { view.close(); } else if (view.remove) { view.remove(); } - Marionette.triggerMethod.call(this, "close"); + Marionette.triggerMethod.call(this, "close", view); delete this.currentView; }, @@ -644,9 +648,9 @@ Marionette.RegionManager = (function(Marionette){ // // Mix in methods from Underscore, for iteration, and other // collection related features. - var methods = ['forEach', 'each', 'map', 'find', 'detect', 'filter', - 'select', 'reject', 'every', 'all', 'some', 'any', 'include', - 'contains', 'invoke', 'toArray', 'first', 'initial', 'rest', + var methods = ['forEach', 'each', 'map', 'find', 'detect', 'filter', + 'select', 'reject', 'every', 'all', 'some', 'any', 'include', + 'contains', 'invoke', 'toArray', 'first', 'initial', 'rest', 'last', 'without', 'isEmpty', 'pluck']; _.each(methods, function(method) { @@ -671,7 +675,7 @@ Marionette.TemplateCache = function(templateId){ }; // TemplateCache object-level methods. Manage the template -// caches from these method calls instead of creating +// caches from these method calls instead of creating // your own TemplateCache instances _.extend(Marionette.TemplateCache, { templateCaches: {}, @@ -694,7 +698,7 @@ _.extend(Marionette.TemplateCache, { // are specified, clears all templates: // `clear()` // - // If arguments are specified, clears each of the + // If arguments are specified, clears each of the // specified templates from the cache: // `clear("#t1", "#t2", "...")` clear: function(){ @@ -734,7 +738,7 @@ _.extend(Marionette.TemplateCache.prototype, { // Load a template from the DOM, by default. Override // this method to provide your own template retrieval // For asynchronous loading with AMD/RequireJS, consider - // using a template-loader plugin as described here: + // using a template-loader plugin as described here: // https://github.com/marionettejs/backbone.marionette/wiki/Using-marionette-with-requirejs loadTemplate: function(templateId){ var template = Marionette.$(templateId).html(); @@ -803,7 +807,7 @@ Marionette.View = Backbone.View.extend({ // this is a backfill since backbone removed the assignment // of this.options // at some point however this may be removed - this.options = _.extend({}, this.options, options); + this.options = _.extend({}, _.result(this, 'options'), _.isFunction(options) ? options.call(this) : options); // parses out the @ui DSL for events this.events = this.normalizeUIKeys(_.result(this, 'events')); @@ -1263,12 +1267,14 @@ Marionette.CollectionView = Marionette.View.extend({ // call the "show" method if the collection view // has already been shown - if (this._isShown){ + if (this._isShown && !this.isBuffering){ Marionette.triggerMethod.call(view, "show"); } // this view was added this.triggerMethod("after:item:added", view); + + return view; }, // Set up the child view event forwarding. Uses an "itemview:" @@ -1280,13 +1286,30 @@ Marionette.CollectionView = Marionette.View.extend({ // prepending "itemview:" to the event name this.listenTo(view, "all", function(){ var args = slice(arguments); - args[0] = prefix + ":" + args[0]; + var rootEvent = args[0]; + var itemEvents = this.getItemEvents(); + + args[0] = prefix + ":" + rootEvent; args.splice(1, 0, view); + // call collectionView itemEvent if defined + if (typeof itemEvents !== "undefined" && _.isFunction(itemEvents[rootEvent])) { + itemEvents[rootEvent].apply(this, args); + } + Marionette.triggerMethod.apply(this, args); }, this); }, + // returns the value of itemEvents depending on if a function + getItemEvents: function() { + if (_.isFunction(this.itemEvents)) { + return this.itemEvents.call(this); + } + + return this.itemEvents; + }, + // render the item view renderItemView: function(view, index) { view.render(); @@ -1520,7 +1543,7 @@ Marionette.CompositeView = Marionette.CollectionView.extend({ var itemViewContainer = Marionette.getOption(containerView, "itemViewContainer"); if (itemViewContainer){ - var selector = _.isFunction(itemViewContainer) ? itemViewContainer() : itemViewContainer; + var selector = _.isFunction(itemViewContainer) ? itemViewContainer.call(this) : itemViewContainer; container = containerView.$(selector); if (container.length <= 0) { throwError("The specified `itemViewContainer` was not found: " + containerView.itemViewContainer, "ItemViewContainerMissingError"); @@ -1684,7 +1707,7 @@ Marionette.Layout = Marionette.ItemView.extend({ // // Configure an AppRouter with `appRoutes`. // -// App routers can only take one `controller` object. +// App routers can only take one `controller` object. // It is recommended that you divide your controller // objects in to smaller pieces of related functionality // and have multiple routers / controllers, instead of @@ -1696,7 +1719,7 @@ Marionette.AppRouter = Backbone.Router.extend({ constructor: function(options){ Backbone.Router.prototype.constructor.apply(this, slice(arguments)); - + this.options = options || {}; var appRoutes = Marionette.getOption(this, "appRoutes"); @@ -2057,6 +2080,6 @@ _.extend(Marionette.Module, { return Marionette; })(this, Backbone, _); - return Backbone.Marionette; + return Backbone.Marionette; })); diff --git a/lib/core/amd/backbone.marionette.min.js b/lib/core/amd/backbone.marionette.min.js index 54afd69b4a..5b84027c2f 100644 --- a/lib/core/amd/backbone.marionette.min.js +++ b/lib/core/amd/backbone.marionette.min.js @@ -1,8 +1,8 @@ // MarionetteJS (Backbone.Marionette) // ---------------------------------- -// v1.4.1 +// v1.5.0 // -// Copyright (c)2013 Derick Bailey, Muted Solutions, LLC. +// Copyright (c)2014 Derick Bailey, Muted Solutions, LLC. // Distributed under MIT license // // http://marionettejs.com @@ -17,4 +17,4 @@ * https://github.com/marionettejs/backbone.wreqr/ */ -!function(a,b){if("object"==typeof exports){var c=require("underscore"),d=require("backbone"),e=require("backbone.wreqr"),f=require("backbone.babysitter");module.exports=b(c,d,e,f)}else"function"==typeof define&&define.amd&&define(["underscore","backbone","backbone.wreqr","backbone.babysitter"],b)}(this,function(a,b){return!function(a,b,c){"use strict";function d(a){return g.call(a)}function e(a,b){var c=new Error(a);throw c.name=b||"Error",c}var f={};b.Marionette=f,f.$=b.$;var g=Array.prototype.slice;return f.extend=b.Model.extend,f.getOption=function(a,b){if(a&&b){var c;return c=a.options&&b in a.options&&void 0!==a.options[b]?a.options[b]:a[b]}},f.triggerMethod=function(){function a(a,b,c){return c.toUpperCase()}var b=/(^|:)(\w)/gi,d=function(d){var e="on"+d.replace(b,a),f=this[e];return c.isFunction(this.trigger)&&this.trigger.apply(this,arguments),c.isFunction(f)?f.apply(this,c.tail(arguments)):void 0};return d}(),f.MonitorDOMRefresh=function(){function a(a){a._isShown=!0,d(a)}function b(a){a._isRendered=!0,d(a)}function d(a){a._isShown&&a._isRendered&&c.isFunction(a.triggerMethod)&&a.triggerMethod("dom:refresh")}return function(c){c.listenTo(c,"show",function(){a(c)}),c.listenTo(c,"render",function(){b(c)})}}(),function(a){function b(a,b,d,f){var g=f.split(/\s+/);c.each(g,function(c){var f=a[c];f||e("Method '"+c+"' was configured as an event handler, but does not exist."),a.listenTo(b,d,f,a)})}function d(a,b,c,d){a.listenTo(b,c,d,a)}function f(a,b,d,e){var f=e.split(/\s+/);c.each(f,function(c){var e=a[c];a.stopListening(b,d,e,a)})}function g(a,b,c,d){a.stopListening(b,c,d,a)}function h(a,b,d,e,f){b&&d&&(c.isFunction(d)&&(d=d.call(a)),c.each(d,function(d,g){c.isFunction(d)?e(a,b,g,d):f(a,b,g,d)}))}a.bindEntityEvents=function(a,c,e){h(a,c,e,d,b)},a.unbindEntityEvents=function(a,b,c){h(a,b,c,g,f)}}(f),f.Callbacks=function(){this._deferred=f.$.Deferred(),this._callbacks=[]},c.extend(f.Callbacks.prototype,{add:function(a,b){this._callbacks.push({cb:a,ctx:b}),this._deferred.done(function(c,d){b&&(c=b),a.call(c,d)})},run:function(a,b){this._deferred.resolve(b,a)},reset:function(){var a=this._callbacks;this._deferred=f.$.Deferred(),this._callbacks=[],c.each(a,function(a){this.add(a.cb,a.ctx)},this)}}),f.Controller=function(a){this.triggerMethod=f.triggerMethod,this.options=a||{},c.isFunction(this.initialize)&&this.initialize(this.options)},f.Controller.extend=f.extend,c.extend(f.Controller.prototype,b.Events,{close:function(){this.stopListening(),this.triggerMethod("close"),this.unbind()}}),f.Region=function(a){if(this.options=a||{},this.el=f.getOption(this,"el"),!this.el){var b=new Error("An 'el' must be specified for a region.");throw b.name="NoElError",b}if(this.initialize){var c=Array.prototype.slice.apply(arguments);this.initialize.apply(this,c)}},c.extend(f.Region,{buildRegion:function(a,b){var d="string"==typeof a,e="string"==typeof a.selector,f="undefined"==typeof a.regionType,g="function"==typeof a;if(!g&&!d&&!e)throw new Error("Region must be specified as a Region type, a selector string or an object with selector property");var h,i;d&&(h=a),a.selector&&(h=a.selector),g&&(i=a),!g&&f&&(i=b),a.regionType&&(i=a.regionType);var j=new i({el:h});return a.parentEl&&(j.getEl=function(b){var d=a.parentEl;return c.isFunction(d)&&(d=d()),d.find(b)}),j}}),c.extend(f.Region.prototype,b.Events,{show:function(a){this.ensureEl();var b=a.isClosed||c.isUndefined(a.$el),d=a!==this.currentView;d&&this.close(),a.render(),(d||b)&&this.open(a),this.currentView=a,f.triggerMethod.call(this,"show",a),f.triggerMethod.call(a,"show")},ensureEl:function(){this.$el&&0!==this.$el.length||(this.$el=this.getEl(this.el))},getEl:function(a){return f.$(a)},open:function(a){this.$el.empty().append(a.el)},close:function(){var a=this.currentView;a&&!a.isClosed&&(a.close?a.close():a.remove&&a.remove(),f.triggerMethod.call(this,"close"),delete this.currentView)},attachView:function(a){this.currentView=a},reset:function(){this.close(),delete this.$el}}),f.Region.extend=f.extend,f.RegionManager=function(a){var b=a.Controller.extend({constructor:function(b){this._regions={},a.Controller.prototype.constructor.call(this,b)},addRegions:function(a,b){var d={};return c.each(a,function(a,e){"string"==typeof a&&(a={selector:a}),a.selector&&(a=c.defaults({},a,b));var f=this.addRegion(e,a);d[e]=f},this),d},addRegion:function(b,d){var e,f=c.isObject(d),g=c.isString(d),h=!!d.selector;return e=g||f&&h?a.Region.buildRegion(d,a.Region):c.isFunction(d)?a.Region.buildRegion(d,a.Region):d,this._store(b,e),this.triggerMethod("region:add",b,e),e},get:function(a){return this._regions[a]},removeRegion:function(a){var b=this._regions[a];this._remove(a,b)},removeRegions:function(){c.each(this._regions,function(a,b){this._remove(b,a)},this)},closeRegions:function(){c.each(this._regions,function(a){a.close()},this)},close:function(){this.removeRegions();var b=Array.prototype.slice.call(arguments);a.Controller.prototype.close.apply(this,b)},_store:function(a,b){this._regions[a]=b,this._setLength()},_remove:function(a,b){b.close(),delete this._regions[a],this._setLength(),this.triggerMethod("region:remove",a,b)},_setLength:function(){this.length=c.size(this._regions)}}),d=["forEach","each","map","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","toArray","first","initial","rest","last","without","isEmpty","pluck"];return c.each(d,function(a){b.prototype[a]=function(){var b=c.values(this._regions),d=[b].concat(c.toArray(arguments));return c[a].apply(c,d)}}),b}(f),f.TemplateCache=function(a){this.templateId=a},c.extend(f.TemplateCache,{templateCaches:{},get:function(a){var b=this.templateCaches[a];return b||(b=new f.TemplateCache(a),this.templateCaches[a]=b),b.load()},clear:function(){var a,b=d(arguments),c=b.length;if(c>0)for(a=0;c>a;a++)delete this.templateCaches[b[a]];else this.templateCaches={}}}),c.extend(f.TemplateCache.prototype,{load:function(){if(this.compiledTemplate)return this.compiledTemplate;var a=this.loadTemplate(this.templateId);return this.compiledTemplate=this.compileTemplate(a),this.compiledTemplate},loadTemplate:function(a){var b=f.$(a).html();return b&&0!==b.length||e("Could not find template: '"+a+"'","NoTemplateError"),b},compileTemplate:function(a){return c.template(a)}}),f.Renderer={render:function(a,b){if(!a){var c=new Error("Cannot render the template since it's false, null or undefined.");throw c.name="TemplateNotFoundError",c}var d;return d="function"==typeof a?a:f.TemplateCache.get(a),d(b)}},f.View=b.View.extend({constructor:function(a){c.bindAll(this,"render");var d=Array.prototype.slice.apply(arguments);this.options=c.extend({},this.options,a),this.events=this.normalizeUIKeys(c.result(this,"events")),b.View.prototype.constructor.apply(this,d),f.MonitorDOMRefresh(this),this.listenTo(this,"show",this.onShowCalled,this)},triggerMethod:f.triggerMethod,getTemplate:function(){return f.getOption(this,"template")},mixinTemplateHelpers:function(a){a=a||{};var b=f.getOption(this,"templateHelpers");return c.isFunction(b)&&(b=b.call(this)),c.extend(a,b)},normalizeUIKeys:function(a){return"undefined"!=typeof a?(c.each(c.keys(a),function(b){var c=b.split("@ui.");2===c.length&&(a[c[0]+this.ui[c[1]]]=a[b],delete a[b])},this),a):void 0},configureTriggers:function(){if(this.triggers){var a={},b=this.normalizeUIKeys(c.result(this,"triggers"));return c.each(b,function(b,d){var e=c.isObject(b),f=e?b.event:b;a[d]=function(a){if(a){var c=a.preventDefault,d=a.stopPropagation,g=e?b.preventDefault:c,h=e?b.stopPropagation:d;g&&c&&c.apply(a),h&&d&&d.apply(a)}var i={view:this,model:this.model,collection:this.collection};this.triggerMethod(f,i)}},this),a}},delegateEvents:function(a){this._delegateDOMEvents(a),f.bindEntityEvents(this,this.model,f.getOption(this,"modelEvents")),f.bindEntityEvents(this,this.collection,f.getOption(this,"collectionEvents"))},_delegateDOMEvents:function(a){a=a||this.events,c.isFunction(a)&&(a=a.call(this));var d={},e=this.configureTriggers();c.extend(d,a,e),b.View.prototype.delegateEvents.call(this,d)},undelegateEvents:function(){var a=Array.prototype.slice.call(arguments);b.View.prototype.undelegateEvents.apply(this,a),f.unbindEntityEvents(this,this.model,f.getOption(this,"modelEvents")),f.unbindEntityEvents(this,this.collection,f.getOption(this,"collectionEvents"))},onShowCalled:function(){},close:function(){if(!this.isClosed){var a=this.triggerMethod("before:close");a!==!1&&(this.isClosed=!0,this.triggerMethod("close"),this.unbindUIElements(),this.remove())}},bindUIElements:function(){if(this.ui){this._uiBindings||(this._uiBindings=this.ui);var a=c.result(this,"_uiBindings");this.ui={},c.each(c.keys(a),function(b){var c=a[b];this.ui[b]=this.$(c)},this)}},unbindUIElements:function(){this.ui&&this._uiBindings&&(c.each(this.ui,function(a,b){delete this.ui[b]},this),this.ui=this._uiBindings,delete this._uiBindings)}}),f.ItemView=f.View.extend({constructor:function(){f.View.prototype.constructor.apply(this,d(arguments))},serializeData:function(){var a={};return this.model?a=this.model.toJSON():this.collection&&(a={items:this.collection.toJSON()}),a},render:function(){this.isClosed=!1,this.triggerMethod("before:render",this),this.triggerMethod("item:before:render",this);var a=this.serializeData();a=this.mixinTemplateHelpers(a);var b=this.getTemplate(),c=f.Renderer.render(b,a);return this.$el.html(c),this.bindUIElements(),this.triggerMethod("render",this),this.triggerMethod("item:rendered",this),this},close:function(){this.isClosed||(this.triggerMethod("item:before:close"),f.View.prototype.close.apply(this,d(arguments)),this.triggerMethod("item:closed"))}}),f.CollectionView=f.View.extend({itemViewEventPrefix:"itemview",constructor:function(){this._initChildViewStorage(),f.View.prototype.constructor.apply(this,d(arguments)),this._initialEvents(),this.initRenderBuffer()},initRenderBuffer:function(){this.elBuffer=document.createDocumentFragment()},startBuffering:function(){this.initRenderBuffer(),this.isBuffering=!0},endBuffering:function(){this.appendBuffer(this,this.elBuffer),this.initRenderBuffer(),this.isBuffering=!1},_initialEvents:function(){this.collection&&(this.listenTo(this.collection,"add",this.addChildView,this),this.listenTo(this.collection,"remove",this.removeItemView,this),this.listenTo(this.collection,"reset",this.render,this))},addChildView:function(a){this.closeEmptyView();var b=this.getItemView(a),c=this.collection.indexOf(a);this.addItemView(a,b,c)},onShowCalled:function(){this.children.each(function(a){f.triggerMethod.call(a,"show")})},triggerBeforeRender:function(){this.triggerMethod("before:render",this),this.triggerMethod("collection:before:render",this)},triggerRendered:function(){this.triggerMethod("render",this),this.triggerMethod("collection:rendered",this)},render:function(){return this.isClosed=!1,this.triggerBeforeRender(),this._renderChildren(),this.triggerRendered(),this},_renderChildren:function(){this.startBuffering(),this.closeEmptyView(),this.closeChildren(),this.collection&&this.collection.length>0?this.showCollection():this.showEmptyView(),this.endBuffering()},showCollection:function(){var a;this.collection.each(function(b,c){a=this.getItemView(b),this.addItemView(b,a,c)},this)},showEmptyView:function(){var a=this.getEmptyView();if(a&&!this._showingEmptyView){this._showingEmptyView=!0;var c=new b.Model;this.addItemView(c,a,0)}},closeEmptyView:function(){this._showingEmptyView&&(this.closeChildren(),delete this._showingEmptyView)},getEmptyView:function(){return f.getOption(this,"emptyView")},getItemView:function(){var a=f.getOption(this,"itemView");return a||e("An `itemView` must be specified","NoItemViewError"),a},addItemView:function(a,b,d){var e=f.getOption(this,"itemViewOptions");c.isFunction(e)&&(e=e.call(this,a,d));var g=this.buildItemView(a,b,e);this.addChildViewEventForwarding(g),this.triggerMethod("before:item:added",g),this.children.add(g),this.renderItemView(g,d),this._isShown&&f.triggerMethod.call(g,"show"),this.triggerMethod("after:item:added",g)},addChildViewEventForwarding:function(a){var b=f.getOption(this,"itemViewEventPrefix");this.listenTo(a,"all",function(){var c=d(arguments);c[0]=b+":"+c[0],c.splice(1,0,a),f.triggerMethod.apply(this,c)},this)},renderItemView:function(a,b){a.render(),this.appendHtml(this,a,b)},buildItemView:function(a,b,d){var e=c.extend({model:a},d);return new b(e)},removeItemView:function(a){var b=this.children.findByModel(a);this.removeChildView(b),this.checkEmpty()},removeChildView:function(a){a&&(this.stopListening(a),a.close?a.close():a.remove&&a.remove(),this.children.remove(a)),this.triggerMethod("item:removed",a)},checkEmpty:function(){this.collection&&0!==this.collection.length||this.showEmptyView()},appendBuffer:function(a,b){a.$el.append(b)},appendHtml:function(a,b){a.isBuffering?a.elBuffer.appendChild(b.el):a.$el.append(b.el)},_initChildViewStorage:function(){this.children=new b.ChildViewContainer},close:function(){this.isClosed||(this.triggerMethod("collection:before:close"),this.closeChildren(),this.triggerMethod("collection:closed"),f.View.prototype.close.apply(this,d(arguments)))},closeChildren:function(){this.children.each(function(a){this.removeChildView(a)},this),this.checkEmpty()}}),f.CompositeView=f.CollectionView.extend({constructor:function(){f.CollectionView.prototype.constructor.apply(this,d(arguments))},_initialEvents:function(){this.once("render",function(){this.collection&&(this.listenTo(this.collection,"add",this.addChildView,this),this.listenTo(this.collection,"remove",this.removeItemView,this),this.listenTo(this.collection,"reset",this._renderChildren,this))})},getItemView:function(){var a=f.getOption(this,"itemView")||this.constructor;return a||e("An `itemView` must be specified","NoItemViewError"),a},serializeData:function(){var a={};return this.model&&(a=this.model.toJSON()),a},render:function(){this.isRendered=!0,this.isClosed=!1,this.resetItemViewContainer(),this.triggerBeforeRender();var a=this.renderModel();return this.$el.html(a),this.bindUIElements(),this.triggerMethod("composite:model:rendered"),this._renderChildren(),this.triggerMethod("composite:rendered"),this.triggerRendered(),this},_renderChildren:function(){this.isRendered&&(f.CollectionView.prototype._renderChildren.call(this),this.triggerMethod("composite:collection:rendered"))},renderModel:function(){var a={};a=this.serializeData(),a=this.mixinTemplateHelpers(a);var b=this.getTemplate();return f.Renderer.render(b,a)},appendBuffer:function(a,b){var c=this.getItemViewContainer(a);c.append(b)},appendHtml:function(a,b){if(a.isBuffering)a.elBuffer.appendChild(b.el);else{var c=this.getItemViewContainer(a);c.append(b.el)}},getItemViewContainer:function(a){if("$itemViewContainer"in a)return a.$itemViewContainer;var b,d=f.getOption(a,"itemViewContainer");if(d){var g=c.isFunction(d)?d():d;b=a.$(g),b.length<=0&&e("The specified `itemViewContainer` was not found: "+a.itemViewContainer,"ItemViewContainerMissingError")}else b=a.$el;return a.$itemViewContainer=b,b},resetItemViewContainer:function(){this.$itemViewContainer&&delete this.$itemViewContainer}}),f.Layout=f.ItemView.extend({regionType:f.Region,constructor:function(a){a=a||{},this._firstRender=!0,this._initializeRegions(a),f.ItemView.prototype.constructor.call(this,a)},render:function(){this.isClosed&&this._initializeRegions(),this._firstRender?this._firstRender=!1:this.isClosed||this._reInitializeRegions();var a=Array.prototype.slice.apply(arguments),b=f.ItemView.prototype.render.apply(this,a);return b},close:function(){if(!this.isClosed){this.regionManager.close();var a=Array.prototype.slice.apply(arguments);f.ItemView.prototype.close.apply(this,a)}},addRegion:function(a,b){var c={};return c[a]=b,this._buildRegions(c)[a]},addRegions:function(a){return this.regions=c.extend({},this.regions,a),this._buildRegions(a)},removeRegion:function(a){return delete this.regions[a],this.regionManager.removeRegion(a)},_buildRegions:function(a){var b=this,c={regionType:f.getOption(this,"regionType"),parentEl:function(){return b.$el}};return this.regionManager.addRegions(a,c)},_initializeRegions:function(a){var b;this._initRegionManager(),b=c.isFunction(this.regions)?this.regions(a):this.regions||{},this.addRegions(b)},_reInitializeRegions:function(){this.regionManager.closeRegions(),this.regionManager.each(function(a){a.reset()})},_initRegionManager:function(){this.regionManager=new f.RegionManager,this.listenTo(this.regionManager,"region:add",function(a,b){this[a]=b,this.trigger("region:add",a,b)}),this.listenTo(this.regionManager,"region:remove",function(a,b){delete this[a],this.trigger("region:remove",a,b)})}}),f.AppRouter=b.Router.extend({constructor:function(a){b.Router.prototype.constructor.apply(this,d(arguments)),this.options=a||{};var c=f.getOption(this,"appRoutes"),e=this._getController();this.processAppRoutes(e,c)},appRoute:function(a,b){var c=this._getController();this._addAppRoute(c,a,b)},processAppRoutes:function(a,b){if(b){var d=c.keys(b).reverse();c.each(d,function(c){this._addAppRoute(a,c,b[c])},this)}},_getController:function(){return f.getOption(this,"controller")},_addAppRoute:function(a,b,d){var e=a[d];if(!e)throw new Error("Method '"+d+"' was not found on the controller");this.route(b,d,c.bind(e,a))}}),f.Application=function(a){this._initRegionManager(),this._initCallbacks=new f.Callbacks,this.vent=new b.Wreqr.EventAggregator,this.commands=new b.Wreqr.Commands,this.reqres=new b.Wreqr.RequestResponse,this.submodules={},c.extend(this,a),this.triggerMethod=f.triggerMethod},c.extend(f.Application.prototype,b.Events,{execute:function(){var a=Array.prototype.slice.apply(arguments);this.commands.execute.apply(this.commands,a)},request:function(){var a=Array.prototype.slice.apply(arguments);return this.reqres.request.apply(this.reqres,a)},addInitializer:function(a){this._initCallbacks.add(a)},start:function(a){this.triggerMethod("initialize:before",a),this._initCallbacks.run(a,this),this.triggerMethod("initialize:after",a),this.triggerMethod("start",a)},addRegions:function(a){return this._regionManager.addRegions(a)},closeRegions:function(){this._regionManager.closeRegions()},removeRegion:function(a){this._regionManager.removeRegion(a)},getRegion:function(a){return this._regionManager.get(a)},module:function(){var a=d(arguments);return a.unshift(this),f.Module.create.apply(f.Module,a)},_initRegionManager:function(){this._regionManager=new f.RegionManager,this.listenTo(this._regionManager,"region:add",function(a,b){this[a]=b}),this.listenTo(this._regionManager,"region:remove",function(a){delete this[a]})}}),f.Application.extend=f.extend,f.Module=function(a,b){this.moduleName=a,this.submodules={},this._setupInitializersAndFinalizers(),this.app=b,this.startWithParent=!0,this.triggerMethod=f.triggerMethod},c.extend(f.Module.prototype,b.Events,{addInitializer:function(a){this._initializerCallbacks.add(a)},addFinalizer:function(a){this._finalizerCallbacks.add(a)},start:function(a){this._isInitialized||(c.each(this.submodules,function(b){b.startWithParent&&b.start(a)}),this.triggerMethod("before:start",a),this._initializerCallbacks.run(a,this),this._isInitialized=!0,this.triggerMethod("start",a))},stop:function(){this._isInitialized&&(this._isInitialized=!1,f.triggerMethod.call(this,"before:stop"),c.each(this.submodules,function(a){a.stop()}),this._finalizerCallbacks.run(void 0,this),this._initializerCallbacks.reset(),this._finalizerCallbacks.reset(),f.triggerMethod.call(this,"stop"))},addDefinition:function(a,b){this._runModuleDefinition(a,b)},_runModuleDefinition:function(a,d){if(a){var e=c.flatten([this,this.app,b,f,f.$,c,d]);a.apply(this,e)}},_setupInitializersAndFinalizers:function(){this._initializerCallbacks=new f.Callbacks,this._finalizerCallbacks=new f.Callbacks}}),c.extend(f.Module,{create:function(a,b,e){var f=a,g=d(arguments);g.splice(0,3),b=b.split(".");var h=b.length,i=[];return i[h-1]=e,c.each(b,function(b,c){var d=f;f=this._getModule(d,b,a),this._addModuleDefinition(d,f,i[c],g)},this),f},_getModule:function(a,b,c){var d=a[b];return d||(d=new f.Module(b,c),a[b]=d,a.submodules[b]=d),d},_addModuleDefinition:function(a,b,d,e){var f,g;c.isFunction(d)?(f=d,g=!0):c.isObject(d)?(f=d.define,g=d.startWithParent):g=!0,f&&b.addDefinition(f,e),b.startWithParent=b.startWithParent&&g,b.startWithParent&&!b.startWithParentIsConfigured&&(b.startWithParentIsConfigured=!0,a.addInitializer(function(a){b.startWithParent&&b.start(a)}))}}),f}(this,b,a),b.Marionette}); \ No newline at end of file +!function(a,b){if("object"==typeof exports){var c=require("underscore"),d=require("backbone"),e=require("backbone.wreqr"),f=require("backbone.babysitter");module.exports=b(c,d,e,f)}else"function"==typeof define&&define.amd&&define(["underscore","backbone","backbone.wreqr","backbone.babysitter"],b)}(this,function(a,b){return!function(a,b,c){"use strict";function d(a){return g.call(a)}function e(a,b){var c=new Error(a);throw c.name=b||"Error",c}var f={};b.Marionette=f,f.$=b.$;var g=Array.prototype.slice;return f.extend=b.Model.extend,f.getOption=function(a,b){if(a&&b){var c;return c=a.options&&b in a.options&&void 0!==a.options[b]?a.options[b]:a[b]}},f.triggerMethod=function(){function a(a,b,c){return c.toUpperCase()}var b=/(^|:)(\w)/gi,d=function(d){var e="on"+d.replace(b,a),f=this[e];return c.isFunction(this.trigger)&&this.trigger.apply(this,arguments),c.isFunction(f)?f.apply(this,c.tail(arguments)):void 0};return d}(),f.MonitorDOMRefresh=function(a){function b(a){a._isShown=!0,e(a)}function d(a){a._isRendered=!0,e(a)}function e(a){a._isShown&&a._isRendered&&f(a)&&c.isFunction(a.triggerMethod)&&a.triggerMethod("dom:refresh")}function f(b){return a.contains(b.el)}return function(a){a.listenTo(a,"show",function(){b(a)}),a.listenTo(a,"render",function(){d(a)})}}(document.documentElement),function(a){function b(a,b,d,f){var g=f.split(/\s+/);c.each(g,function(c){var f=a[c];f||e("Method '"+c+"' was configured as an event handler, but does not exist."),a.listenTo(b,d,f,a)})}function d(a,b,c,d){a.listenTo(b,c,d,a)}function f(a,b,d,e){var f=e.split(/\s+/);c.each(f,function(c){var e=a[c];a.stopListening(b,d,e,a)})}function g(a,b,c,d){a.stopListening(b,c,d,a)}function h(a,b,d,e,f){b&&d&&(c.isFunction(d)&&(d=d.call(a)),c.each(d,function(d,g){c.isFunction(d)?e(a,b,g,d):f(a,b,g,d)}))}a.bindEntityEvents=function(a,c,e){h(a,c,e,d,b)},a.unbindEntityEvents=function(a,b,c){h(a,b,c,g,f)}}(f),f.Callbacks=function(){this._deferred=f.$.Deferred(),this._callbacks=[]},c.extend(f.Callbacks.prototype,{add:function(a,b){this._callbacks.push({cb:a,ctx:b}),this._deferred.done(function(c,d){b&&(c=b),a.call(c,d)})},run:function(a,b){this._deferred.resolve(b,a)},reset:function(){var a=this._callbacks;this._deferred=f.$.Deferred(),this._callbacks=[],c.each(a,function(a){this.add(a.cb,a.ctx)},this)}}),f.Controller=function(a){this.triggerMethod=f.triggerMethod,this.options=a||{},c.isFunction(this.initialize)&&this.initialize(this.options)},f.Controller.extend=f.extend,c.extend(f.Controller.prototype,b.Events,{close:function(){this.stopListening(),this.triggerMethod("close"),this.unbind()}}),f.Region=function(a){if(this.options=a||{},this.el=f.getOption(this,"el"),!this.el){var b=new Error("An 'el' must be specified for a region.");throw b.name="NoElError",b}if(this.initialize){var c=Array.prototype.slice.apply(arguments);this.initialize.apply(this,c)}},c.extend(f.Region,{buildRegion:function(a,b){var d="string"==typeof a,e="string"==typeof a.selector,f="undefined"==typeof a.regionType,g="function"==typeof a;if(!g&&!d&&!e)throw new Error("Region must be specified as a Region type, a selector string or an object with selector property");var h,i;d&&(h=a),a.selector&&(h=a.selector),g&&(i=a),!g&&f&&(i=b),a.regionType&&(i=a.regionType);var j=new i({el:h});return a.parentEl&&(j.getEl=function(b){var d=a.parentEl;return c.isFunction(d)&&(d=d()),d.find(b)}),j}}),c.extend(f.Region.prototype,b.Events,{show:function(a){this.ensureEl();var b=a.isClosed||c.isUndefined(a.$el),d=a!==this.currentView;d&&this.close(),a.render(),(d||b)&&this.open(a),this.currentView=a,f.triggerMethod.call(this,"show",a),f.triggerMethod.call(a,"show")},ensureEl:function(){this.$el&&0!==this.$el.length||(this.$el=this.getEl(this.el))},getEl:function(a){return f.$(a)},open:function(a){this.$el.empty().append(a.el)},close:function(){var a=this.currentView;a&&!a.isClosed&&(a.close?a.close():a.remove&&a.remove(),f.triggerMethod.call(this,"close",a),delete this.currentView)},attachView:function(a){this.currentView=a},reset:function(){this.close(),delete this.$el}}),f.Region.extend=f.extend,f.RegionManager=function(a){var b=a.Controller.extend({constructor:function(b){this._regions={},a.Controller.prototype.constructor.call(this,b)},addRegions:function(a,b){var d={};return c.each(a,function(a,e){"string"==typeof a&&(a={selector:a}),a.selector&&(a=c.defaults({},a,b));var f=this.addRegion(e,a);d[e]=f},this),d},addRegion:function(b,d){var e,f=c.isObject(d),g=c.isString(d),h=!!d.selector;return e=g||f&&h?a.Region.buildRegion(d,a.Region):c.isFunction(d)?a.Region.buildRegion(d,a.Region):d,this._store(b,e),this.triggerMethod("region:add",b,e),e},get:function(a){return this._regions[a]},removeRegion:function(a){var b=this._regions[a];this._remove(a,b)},removeRegions:function(){c.each(this._regions,function(a,b){this._remove(b,a)},this)},closeRegions:function(){c.each(this._regions,function(a){a.close()},this)},close:function(){this.removeRegions();var b=Array.prototype.slice.call(arguments);a.Controller.prototype.close.apply(this,b)},_store:function(a,b){this._regions[a]=b,this._setLength()},_remove:function(a,b){b.close(),delete this._regions[a],this._setLength(),this.triggerMethod("region:remove",a,b)},_setLength:function(){this.length=c.size(this._regions)}}),d=["forEach","each","map","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","toArray","first","initial","rest","last","without","isEmpty","pluck"];return c.each(d,function(a){b.prototype[a]=function(){var b=c.values(this._regions),d=[b].concat(c.toArray(arguments));return c[a].apply(c,d)}}),b}(f),f.TemplateCache=function(a){this.templateId=a},c.extend(f.TemplateCache,{templateCaches:{},get:function(a){var b=this.templateCaches[a];return b||(b=new f.TemplateCache(a),this.templateCaches[a]=b),b.load()},clear:function(){var a,b=d(arguments),c=b.length;if(c>0)for(a=0;c>a;a++)delete this.templateCaches[b[a]];else this.templateCaches={}}}),c.extend(f.TemplateCache.prototype,{load:function(){if(this.compiledTemplate)return this.compiledTemplate;var a=this.loadTemplate(this.templateId);return this.compiledTemplate=this.compileTemplate(a),this.compiledTemplate},loadTemplate:function(a){var b=f.$(a).html();return b&&0!==b.length||e("Could not find template: '"+a+"'","NoTemplateError"),b},compileTemplate:function(a){return c.template(a)}}),f.Renderer={render:function(a,b){if(!a){var c=new Error("Cannot render the template since it's false, null or undefined.");throw c.name="TemplateNotFoundError",c}var d;return d="function"==typeof a?a:f.TemplateCache.get(a),d(b)}},f.View=b.View.extend({constructor:function(a){c.bindAll(this,"render");var d=Array.prototype.slice.apply(arguments);this.options=c.extend({},c.result(this,"options"),c.isFunction(a)?a.call(this):a),this.events=this.normalizeUIKeys(c.result(this,"events")),b.View.prototype.constructor.apply(this,d),f.MonitorDOMRefresh(this),this.listenTo(this,"show",this.onShowCalled,this)},triggerMethod:f.triggerMethod,getTemplate:function(){return f.getOption(this,"template")},mixinTemplateHelpers:function(a){a=a||{};var b=f.getOption(this,"templateHelpers");return c.isFunction(b)&&(b=b.call(this)),c.extend(a,b)},normalizeUIKeys:function(a){return"undefined"!=typeof a?(c.each(c.keys(a),function(b){var c=b.split("@ui.");2===c.length&&(a[c[0]+this.ui[c[1]]]=a[b],delete a[b])},this),a):void 0},configureTriggers:function(){if(this.triggers){var a={},b=this.normalizeUIKeys(c.result(this,"triggers"));return c.each(b,function(b,d){var e=c.isObject(b),f=e?b.event:b;a[d]=function(a){if(a){var c=a.preventDefault,d=a.stopPropagation,g=e?b.preventDefault:c,h=e?b.stopPropagation:d;g&&c&&c.apply(a),h&&d&&d.apply(a)}var i={view:this,model:this.model,collection:this.collection};this.triggerMethod(f,i)}},this),a}},delegateEvents:function(a){this._delegateDOMEvents(a),f.bindEntityEvents(this,this.model,f.getOption(this,"modelEvents")),f.bindEntityEvents(this,this.collection,f.getOption(this,"collectionEvents"))},_delegateDOMEvents:function(a){a=a||this.events,c.isFunction(a)&&(a=a.call(this));var d={},e=this.configureTriggers();c.extend(d,a,e),b.View.prototype.delegateEvents.call(this,d)},undelegateEvents:function(){var a=Array.prototype.slice.call(arguments);b.View.prototype.undelegateEvents.apply(this,a),f.unbindEntityEvents(this,this.model,f.getOption(this,"modelEvents")),f.unbindEntityEvents(this,this.collection,f.getOption(this,"collectionEvents"))},onShowCalled:function(){},close:function(){if(!this.isClosed){var a=this.triggerMethod("before:close");a!==!1&&(this.isClosed=!0,this.triggerMethod("close"),this.unbindUIElements(),this.remove())}},bindUIElements:function(){if(this.ui){this._uiBindings||(this._uiBindings=this.ui);var a=c.result(this,"_uiBindings");this.ui={},c.each(c.keys(a),function(b){var c=a[b];this.ui[b]=this.$(c)},this)}},unbindUIElements:function(){this.ui&&this._uiBindings&&(c.each(this.ui,function(a,b){delete this.ui[b]},this),this.ui=this._uiBindings,delete this._uiBindings)}}),f.ItemView=f.View.extend({constructor:function(){f.View.prototype.constructor.apply(this,d(arguments))},serializeData:function(){var a={};return this.model?a=this.model.toJSON():this.collection&&(a={items:this.collection.toJSON()}),a},render:function(){this.isClosed=!1,this.triggerMethod("before:render",this),this.triggerMethod("item:before:render",this);var a=this.serializeData();a=this.mixinTemplateHelpers(a);var b=this.getTemplate(),c=f.Renderer.render(b,a);return this.$el.html(c),this.bindUIElements(),this.triggerMethod("render",this),this.triggerMethod("item:rendered",this),this},close:function(){this.isClosed||(this.triggerMethod("item:before:close"),f.View.prototype.close.apply(this,d(arguments)),this.triggerMethod("item:closed"))}}),f.CollectionView=f.View.extend({itemViewEventPrefix:"itemview",constructor:function(){this._initChildViewStorage(),f.View.prototype.constructor.apply(this,d(arguments)),this._initialEvents(),this.initRenderBuffer()},initRenderBuffer:function(){this.elBuffer=document.createDocumentFragment()},startBuffering:function(){this.initRenderBuffer(),this.isBuffering=!0},endBuffering:function(){this.appendBuffer(this,this.elBuffer),this.initRenderBuffer(),this.isBuffering=!1},_initialEvents:function(){this.collection&&(this.listenTo(this.collection,"add",this.addChildView,this),this.listenTo(this.collection,"remove",this.removeItemView,this),this.listenTo(this.collection,"reset",this.render,this))},addChildView:function(a){this.closeEmptyView();var b=this.getItemView(a),c=this.collection.indexOf(a);this.addItemView(a,b,c)},onShowCalled:function(){this.children.each(function(a){f.triggerMethod.call(a,"show")})},triggerBeforeRender:function(){this.triggerMethod("before:render",this),this.triggerMethod("collection:before:render",this)},triggerRendered:function(){this.triggerMethod("render",this),this.triggerMethod("collection:rendered",this)},render:function(){return this.isClosed=!1,this.triggerBeforeRender(),this._renderChildren(),this.triggerRendered(),this},_renderChildren:function(){this.startBuffering(),this.closeEmptyView(),this.closeChildren(),this.collection&&this.collection.length>0?this.showCollection():this.showEmptyView(),this.endBuffering()},showCollection:function(){var a;this.collection.each(function(b,c){a=this.getItemView(b),this.addItemView(b,a,c)},this)},showEmptyView:function(){var a=this.getEmptyView();if(a&&!this._showingEmptyView){this._showingEmptyView=!0;var c=new b.Model;this.addItemView(c,a,0)}},closeEmptyView:function(){this._showingEmptyView&&(this.closeChildren(),delete this._showingEmptyView)},getEmptyView:function(){return f.getOption(this,"emptyView")},getItemView:function(){var a=f.getOption(this,"itemView");return a||e("An `itemView` must be specified","NoItemViewError"),a},addItemView:function(a,b,d){var e=f.getOption(this,"itemViewOptions");c.isFunction(e)&&(e=e.call(this,a,d));var g=this.buildItemView(a,b,e);return this.addChildViewEventForwarding(g),this.triggerMethod("before:item:added",g),this.children.add(g),this.renderItemView(g,d),this._isShown&&!this.isBuffering&&f.triggerMethod.call(g,"show"),this.triggerMethod("after:item:added",g),g},addChildViewEventForwarding:function(a){var b=f.getOption(this,"itemViewEventPrefix");this.listenTo(a,"all",function(){var e=d(arguments),g=e[0],h=this.getItemEvents();e[0]=b+":"+g,e.splice(1,0,a),"undefined"!=typeof h&&c.isFunction(h[g])&&h[g].apply(this,e),f.triggerMethod.apply(this,e)},this)},getItemEvents:function(){return c.isFunction(this.itemEvents)?this.itemEvents.call(this):this.itemEvents},renderItemView:function(a,b){a.render(),this.appendHtml(this,a,b)},buildItemView:function(a,b,d){var e=c.extend({model:a},d);return new b(e)},removeItemView:function(a){var b=this.children.findByModel(a);this.removeChildView(b),this.checkEmpty()},removeChildView:function(a){a&&(this.stopListening(a),a.close?a.close():a.remove&&a.remove(),this.children.remove(a)),this.triggerMethod("item:removed",a)},checkEmpty:function(){this.collection&&0!==this.collection.length||this.showEmptyView()},appendBuffer:function(a,b){a.$el.append(b)},appendHtml:function(a,b){a.isBuffering?a.elBuffer.appendChild(b.el):a.$el.append(b.el)},_initChildViewStorage:function(){this.children=new b.ChildViewContainer},close:function(){this.isClosed||(this.triggerMethod("collection:before:close"),this.closeChildren(),this.triggerMethod("collection:closed"),f.View.prototype.close.apply(this,d(arguments)))},closeChildren:function(){this.children.each(function(a){this.removeChildView(a)},this),this.checkEmpty()}}),f.CompositeView=f.CollectionView.extend({constructor:function(){f.CollectionView.prototype.constructor.apply(this,d(arguments))},_initialEvents:function(){this.once("render",function(){this.collection&&(this.listenTo(this.collection,"add",this.addChildView,this),this.listenTo(this.collection,"remove",this.removeItemView,this),this.listenTo(this.collection,"reset",this._renderChildren,this))})},getItemView:function(){var a=f.getOption(this,"itemView")||this.constructor;return a||e("An `itemView` must be specified","NoItemViewError"),a},serializeData:function(){var a={};return this.model&&(a=this.model.toJSON()),a},render:function(){this.isRendered=!0,this.isClosed=!1,this.resetItemViewContainer(),this.triggerBeforeRender();var a=this.renderModel();return this.$el.html(a),this.bindUIElements(),this.triggerMethod("composite:model:rendered"),this._renderChildren(),this.triggerMethod("composite:rendered"),this.triggerRendered(),this},_renderChildren:function(){this.isRendered&&(f.CollectionView.prototype._renderChildren.call(this),this.triggerMethod("composite:collection:rendered"))},renderModel:function(){var a={};a=this.serializeData(),a=this.mixinTemplateHelpers(a);var b=this.getTemplate();return f.Renderer.render(b,a)},appendBuffer:function(a,b){var c=this.getItemViewContainer(a);c.append(b)},appendHtml:function(a,b){if(a.isBuffering)a.elBuffer.appendChild(b.el);else{var c=this.getItemViewContainer(a);c.append(b.el)}},getItemViewContainer:function(a){if("$itemViewContainer"in a)return a.$itemViewContainer;var b,d=f.getOption(a,"itemViewContainer");if(d){var g=c.isFunction(d)?d.call(this):d;b=a.$(g),b.length<=0&&e("The specified `itemViewContainer` was not found: "+a.itemViewContainer,"ItemViewContainerMissingError")}else b=a.$el;return a.$itemViewContainer=b,b},resetItemViewContainer:function(){this.$itemViewContainer&&delete this.$itemViewContainer}}),f.Layout=f.ItemView.extend({regionType:f.Region,constructor:function(a){a=a||{},this._firstRender=!0,this._initializeRegions(a),f.ItemView.prototype.constructor.call(this,a)},render:function(){this.isClosed&&this._initializeRegions(),this._firstRender?this._firstRender=!1:this.isClosed||this._reInitializeRegions();var a=Array.prototype.slice.apply(arguments),b=f.ItemView.prototype.render.apply(this,a);return b},close:function(){if(!this.isClosed){this.regionManager.close();var a=Array.prototype.slice.apply(arguments);f.ItemView.prototype.close.apply(this,a)}},addRegion:function(a,b){var c={};return c[a]=b,this._buildRegions(c)[a]},addRegions:function(a){return this.regions=c.extend({},this.regions,a),this._buildRegions(a)},removeRegion:function(a){return delete this.regions[a],this.regionManager.removeRegion(a)},_buildRegions:function(a){var b=this,c={regionType:f.getOption(this,"regionType"),parentEl:function(){return b.$el}};return this.regionManager.addRegions(a,c)},_initializeRegions:function(a){var b;this._initRegionManager(),b=c.isFunction(this.regions)?this.regions(a):this.regions||{},this.addRegions(b)},_reInitializeRegions:function(){this.regionManager.closeRegions(),this.regionManager.each(function(a){a.reset()})},_initRegionManager:function(){this.regionManager=new f.RegionManager,this.listenTo(this.regionManager,"region:add",function(a,b){this[a]=b,this.trigger("region:add",a,b)}),this.listenTo(this.regionManager,"region:remove",function(a,b){delete this[a],this.trigger("region:remove",a,b)})}}),f.AppRouter=b.Router.extend({constructor:function(a){b.Router.prototype.constructor.apply(this,d(arguments)),this.options=a||{};var c=f.getOption(this,"appRoutes"),e=this._getController();this.processAppRoutes(e,c)},appRoute:function(a,b){var c=this._getController();this._addAppRoute(c,a,b)},processAppRoutes:function(a,b){if(b){var d=c.keys(b).reverse();c.each(d,function(c){this._addAppRoute(a,c,b[c])},this)}},_getController:function(){return f.getOption(this,"controller")},_addAppRoute:function(a,b,d){var e=a[d];if(!e)throw new Error("Method '"+d+"' was not found on the controller");this.route(b,d,c.bind(e,a))}}),f.Application=function(a){this._initRegionManager(),this._initCallbacks=new f.Callbacks,this.vent=new b.Wreqr.EventAggregator,this.commands=new b.Wreqr.Commands,this.reqres=new b.Wreqr.RequestResponse,this.submodules={},c.extend(this,a),this.triggerMethod=f.triggerMethod},c.extend(f.Application.prototype,b.Events,{execute:function(){var a=Array.prototype.slice.apply(arguments);this.commands.execute.apply(this.commands,a)},request:function(){var a=Array.prototype.slice.apply(arguments);return this.reqres.request.apply(this.reqres,a)},addInitializer:function(a){this._initCallbacks.add(a)},start:function(a){this.triggerMethod("initialize:before",a),this._initCallbacks.run(a,this),this.triggerMethod("initialize:after",a),this.triggerMethod("start",a)},addRegions:function(a){return this._regionManager.addRegions(a)},closeRegions:function(){this._regionManager.closeRegions()},removeRegion:function(a){this._regionManager.removeRegion(a)},getRegion:function(a){return this._regionManager.get(a)},module:function(){var a=d(arguments);return a.unshift(this),f.Module.create.apply(f.Module,a)},_initRegionManager:function(){this._regionManager=new f.RegionManager,this.listenTo(this._regionManager,"region:add",function(a,b){this[a]=b}),this.listenTo(this._regionManager,"region:remove",function(a){delete this[a]})}}),f.Application.extend=f.extend,f.Module=function(a,b){this.moduleName=a,this.submodules={},this._setupInitializersAndFinalizers(),this.app=b,this.startWithParent=!0,this.triggerMethod=f.triggerMethod},c.extend(f.Module.prototype,b.Events,{addInitializer:function(a){this._initializerCallbacks.add(a)},addFinalizer:function(a){this._finalizerCallbacks.add(a)},start:function(a){this._isInitialized||(c.each(this.submodules,function(b){b.startWithParent&&b.start(a)}),this.triggerMethod("before:start",a),this._initializerCallbacks.run(a,this),this._isInitialized=!0,this.triggerMethod("start",a))},stop:function(){this._isInitialized&&(this._isInitialized=!1,f.triggerMethod.call(this,"before:stop"),c.each(this.submodules,function(a){a.stop()}),this._finalizerCallbacks.run(void 0,this),this._initializerCallbacks.reset(),this._finalizerCallbacks.reset(),f.triggerMethod.call(this,"stop"))},addDefinition:function(a,b){this._runModuleDefinition(a,b)},_runModuleDefinition:function(a,d){if(a){var e=c.flatten([this,this.app,b,f,f.$,c,d]);a.apply(this,e)}},_setupInitializersAndFinalizers:function(){this._initializerCallbacks=new f.Callbacks,this._finalizerCallbacks=new f.Callbacks}}),c.extend(f.Module,{create:function(a,b,e){var f=a,g=d(arguments);g.splice(0,3),b=b.split(".");var h=b.length,i=[];return i[h-1]=e,c.each(b,function(b,c){var d=f;f=this._getModule(d,b,a),this._addModuleDefinition(d,f,i[c],g)},this),f},_getModule:function(a,b,c){var d=a[b];return d||(d=new f.Module(b,c),a[b]=d,a.submodules[b]=d),d},_addModuleDefinition:function(a,b,d,e){var f,g;c.isFunction(d)?(f=d,g=!0):c.isObject(d)?(f=d.define,g=d.startWithParent):g=!0,f&&b.addDefinition(f,e),b.startWithParent=b.startWithParent&&g,b.startWithParent&&!b.startWithParentIsConfigured&&(b.startWithParentIsConfigured=!0,a.addInitializer(function(a){b.startWithParent&&b.start(a)}))}}),f}(this,b,a),b.Marionette}); \ No newline at end of file diff --git a/lib/core/backbone.marionette.js b/lib/core/backbone.marionette.js index 22e4518968..f7cbac0056 100644 --- a/lib/core/backbone.marionette.js +++ b/lib/core/backbone.marionette.js @@ -52,11 +52,11 @@ Marionette.getOption = function(target, optionName){ // `this.triggerMethod("foo")` will trigger the "foo" event and // call the "onFoo" method. // -// `this.triggerMethod("foo:bar") will trigger the "foo:bar" event and +// `this.triggerMethod("foo:bar")` will trigger the "foo:bar" event and // call the "onFooBar" method. Marionette.triggerMethod = (function(){ - // split the event name on the : + // split the event name on the ":" var splitter = /(^|:)(\w)/gi; // take the event section ("section1:section2:section3") @@ -65,7 +65,7 @@ Marionette.triggerMethod = (function(){ return eventName.toUpperCase(); } - // actual triggerMethod name + // actual triggerMethod implementation var triggerMethod = function(event) { // get the method name from the event name var methodName = 'on' + event.replace(splitter, getEventName); @@ -93,7 +93,7 @@ Marionette.triggerMethod = (function(){ // in the DOM, trigger a "dom:refresh" event every time it is // re-rendered. -Marionette.MonitorDOMRefresh = (function(){ +Marionette.MonitorDOMRefresh = (function(documentElement){ // track when the view has been shown in the DOM, // using a Marionette.Region (or by other means of triggering "show") function handleShow(view){ @@ -109,13 +109,17 @@ Marionette.MonitorDOMRefresh = (function(){ // Trigger the "dom:refresh" event and corresponding "onDomRefresh" method function triggerDOMRefresh(view){ - if (view._isShown && view._isRendered){ + if (view._isShown && view._isRendered && isInDOM(view)){ if (_.isFunction(view.triggerMethod)){ view.triggerMethod("dom:refresh"); } } } + function isInDOM(view) { + return documentElement.contains(view.el); + } + // Export public API return function(view){ view.listenTo(view, "show", function(){ @@ -126,7 +130,7 @@ Marionette.MonitorDOMRefresh = (function(){ handleRender(view); }); }; -})(); +})(document.documentElement); // Marionette.bindEntityEvents & unbindEntityEvents @@ -465,7 +469,7 @@ _.extend(Marionette.Region.prototype, Backbone.Events, { if (view.close) { view.close(); } else if (view.remove) { view.remove(); } - Marionette.triggerMethod.call(this, "close"); + Marionette.triggerMethod.call(this, "close", view); delete this.currentView; }, @@ -608,9 +612,9 @@ Marionette.RegionManager = (function(Marionette){ // // Mix in methods from Underscore, for iteration, and other // collection related features. - var methods = ['forEach', 'each', 'map', 'find', 'detect', 'filter', - 'select', 'reject', 'every', 'all', 'some', 'any', 'include', - 'contains', 'invoke', 'toArray', 'first', 'initial', 'rest', + var methods = ['forEach', 'each', 'map', 'find', 'detect', 'filter', + 'select', 'reject', 'every', 'all', 'some', 'any', 'include', + 'contains', 'invoke', 'toArray', 'first', 'initial', 'rest', 'last', 'without', 'isEmpty', 'pluck']; _.each(methods, function(method) { @@ -635,7 +639,7 @@ Marionette.TemplateCache = function(templateId){ }; // TemplateCache object-level methods. Manage the template -// caches from these method calls instead of creating +// caches from these method calls instead of creating // your own TemplateCache instances _.extend(Marionette.TemplateCache, { templateCaches: {}, @@ -658,7 +662,7 @@ _.extend(Marionette.TemplateCache, { // are specified, clears all templates: // `clear()` // - // If arguments are specified, clears each of the + // If arguments are specified, clears each of the // specified templates from the cache: // `clear("#t1", "#t2", "...")` clear: function(){ @@ -698,7 +702,7 @@ _.extend(Marionette.TemplateCache.prototype, { // Load a template from the DOM, by default. Override // this method to provide your own template retrieval // For asynchronous loading with AMD/RequireJS, consider - // using a template-loader plugin as described here: + // using a template-loader plugin as described here: // https://github.com/marionettejs/backbone.marionette/wiki/Using-marionette-with-requirejs loadTemplate: function(templateId){ var template = Marionette.$(templateId).html(); @@ -767,7 +771,7 @@ Marionette.View = Backbone.View.extend({ // this is a backfill since backbone removed the assignment // of this.options // at some point however this may be removed - this.options = _.extend({}, this.options, options); + this.options = _.extend({}, _.result(this, 'options'), _.isFunction(options) ? options.call(this) : options); // parses out the @ui DSL for events this.events = this.normalizeUIKeys(_.result(this, 'events')); @@ -1227,12 +1231,14 @@ Marionette.CollectionView = Marionette.View.extend({ // call the "show" method if the collection view // has already been shown - if (this._isShown){ + if (this._isShown && !this.isBuffering){ Marionette.triggerMethod.call(view, "show"); } // this view was added this.triggerMethod("after:item:added", view); + + return view; }, // Set up the child view event forwarding. Uses an "itemview:" @@ -1244,13 +1250,30 @@ Marionette.CollectionView = Marionette.View.extend({ // prepending "itemview:" to the event name this.listenTo(view, "all", function(){ var args = slice(arguments); - args[0] = prefix + ":" + args[0]; + var rootEvent = args[0]; + var itemEvents = this.getItemEvents(); + + args[0] = prefix + ":" + rootEvent; args.splice(1, 0, view); + // call collectionView itemEvent if defined + if (typeof itemEvents !== "undefined" && _.isFunction(itemEvents[rootEvent])) { + itemEvents[rootEvent].apply(this, args); + } + Marionette.triggerMethod.apply(this, args); }, this); }, + // returns the value of itemEvents depending on if a function + getItemEvents: function() { + if (_.isFunction(this.itemEvents)) { + return this.itemEvents.call(this); + } + + return this.itemEvents; + }, + // render the item view renderItemView: function(view, index) { view.render(); @@ -1484,7 +1507,7 @@ Marionette.CompositeView = Marionette.CollectionView.extend({ var itemViewContainer = Marionette.getOption(containerView, "itemViewContainer"); if (itemViewContainer){ - var selector = _.isFunction(itemViewContainer) ? itemViewContainer() : itemViewContainer; + var selector = _.isFunction(itemViewContainer) ? itemViewContainer.call(this) : itemViewContainer; container = containerView.$(selector); if (container.length <= 0) { throwError("The specified `itemViewContainer` was not found: " + containerView.itemViewContainer, "ItemViewContainerMissingError"); @@ -1648,7 +1671,7 @@ Marionette.Layout = Marionette.ItemView.extend({ // // Configure an AppRouter with `appRoutes`. // -// App routers can only take one `controller` object. +// App routers can only take one `controller` object. // It is recommended that you divide your controller // objects in to smaller pieces of related functionality // and have multiple routers / controllers, instead of @@ -1660,7 +1683,7 @@ Marionette.AppRouter = Backbone.Router.extend({ constructor: function(options){ Backbone.Router.prototype.constructor.apply(this, slice(arguments)); - + this.options = options || {}; var appRoutes = Marionette.getOption(this, "appRoutes"); diff --git a/lib/core/backbone.marionette.map b/lib/core/backbone.marionette.map index 7c92b24dbd..8bf2624430 100644 --- a/lib/core/backbone.marionette.map +++ b/lib/core/backbone.marionette.map @@ -1 +1 @@ -{"version":3,"file":"lib/core/backbone.marionette.min.js","sources":["backbone.marionette.js"],"names":["Marionette","global","Backbone","_","slice","args","protoSlice","call","throwError","message","name","error","Error","$","Array","prototype","extend","Model","getOption","target","optionName","value","options","undefined","triggerMethod","getEventName","match","prefix","eventName","toUpperCase","splitter","event","methodName","replace","method","this","isFunction","trigger","apply","arguments","tail","MonitorDOMRefresh","handleShow","view","_isShown","triggerDOMRefresh","handleRender","_isRendered","listenTo","bindFromStrings","entity","evt","methods","methodNames","split","each","bindToFunction","unbindFromStrings","stopListening","unbindToFunction","iterateEvents","bindings","functionCallback","stringCallback","bindEntityEvents","unbindEntityEvents","Callbacks","_deferred","Deferred","_callbacks","add","callback","contextOverride","push","cb","ctx","done","context","run","resolve","reset","callbacks","Controller","initialize","Events","close","unbind","Region","el","err","buildRegion","regionConfig","defaultRegionType","regionIsString","regionSelectorIsString","selector","regionTypeIsUndefined","regionType","regionIsType","RegionType","region","parentEl","getEl","find","show","ensureEl","isViewClosed","isClosed","isUndefined","$el","isDifferentView","currentView","render","open","length","empty","append","remove","attachView","RegionManager","constructor","_regions","addRegions","regionDefinitions","defaults","regions","definition","addRegion","isObject","isString","hasSelector","_store","get","removeRegion","_remove","removeRegions","closeRegions","_setLength","size","values","concat","toArray","TemplateCache","templateId","templateCaches","cachedTemplate","load","clear","i","compiledTemplate","template","loadTemplate","compileTemplate","html","rawTemplate","Renderer","data","templateFunc","View","bindAll","events","normalizeUIKeys","result","onShowCalled","getTemplate","mixinTemplateHelpers","templateHelpers","hash","keys","v","ui","configureTriggers","triggers","triggerEvents","key","hasOptions","e","prevent","preventDefault","stop","stopPropagation","shouldPrevent","shouldStop","model","collection","delegateEvents","_delegateDOMEvents","combinedEvents","undelegateEvents","shouldClose","unbindUIElements","bindUIElements","_uiBindings","ItemView","serializeData","toJSON","items","CollectionView","itemViewEventPrefix","_initChildViewStorage","_initialEvents","initRenderBuffer","elBuffer","document","createDocumentFragment","startBuffering","isBuffering","endBuffering","appendBuffer","addChildView","removeItemView","item","closeEmptyView","getItemView","index","indexOf","addItemView","children","child","triggerBeforeRender","triggerRendered","_renderChildren","closeChildren","showCollection","showEmptyView","EmptyView","getEmptyView","_showingEmptyView","itemView","itemViewOptions","buildItemView","addChildViewEventForwarding","renderItemView","splice","appendHtml","ItemViewType","findByModel","removeChildView","checkEmpty","collectionView","buffer","appendChild","ChildViewContainer","CompositeView","once","isRendered","resetItemViewContainer","renderModel","compositeView","$container","getItemViewContainer","containerView","$itemViewContainer","container","itemViewContainer","Layout","_firstRender","_initializeRegions","_reInitializeRegions","regionManager","_buildRegions","that","_initRegionManager","AppRouter","Router","appRoutes","controller","_getController","processAppRoutes","appRoute","route","_addAppRoute","routeNames","reverse","bind","Application","_initCallbacks","vent","Wreqr","EventAggregator","commands","Commands","reqres","RequestResponse","submodules","execute","request","addInitializer","initializer","start","_regionManager","getRegion","module","unshift","Module","create","moduleName","app","_setupInitializersAndFinalizers","startWithParent","_initializerCallbacks","addFinalizer","_finalizerCallbacks","_isInitialized","mod","addDefinition","moduleDefinition","customArgs","_runModuleDefinition","flatten","moduleNames","moduleDefinitions","parentModule","_getModule","_addModuleDefinition","def","fn","define","startWithParentIsConfigured"],"mappings":"AAAA,GAAIA,YAAa,SAAUC,EAAQC,EAAUC,GAC3C,YAcF,SAASC,GAAMC,GACb,MAAOC,GAAWC,KAAKF,GAGzB,QAASG,GAAWC,EAASC,GAC3B,GAAIC,GAAQ,GAAIC,OAAMH,EAEtB,MADAE,GAAMD,KAAOA,GAAQ,QACfC,EAlBN,GAAIX,KACJE,GAASF,WAAaA,EAGtBA,EAAWa,EAAIX,EAASW,CAM1B,IAAIP,GAAaQ,MAAMC,UAAUX,KAs9D/B,OAv8DFJ,GAAWgB,OAASd,EAASe,MAAMD,OAOnChB,EAAWkB,UAAY,SAASC,EAAQC,GACtC,GAAKD,GAAWC,EAAhB,CACA,GAAIC,EAQJ,OALEA,GADEF,EAAOG,SAAYF,IAAcD,GAAOG,SAA4CC,SAA/BJ,EAAOG,QAAQF,GAC9DD,EAAOG,QAAQF,GAEfD,EAAOC,KAanBpB,EAAWwB,cAAgB,WAOzB,QAASC,GAAaC,EAAOC,EAAQC,GACnC,MAAOA,GAAUC,cALnB,GAAIC,GAAW,cASXN,EAAgB,SAASO,GAE3B,GAAIC,GAAa,KA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A,GAAkBrM,EAAO,GAAKgM,EAG9B/S,EAAEoD,KAAK+P,EAAa,SAASd,EAAYpJ,GACvC,GAAIoK,GAAepB,CACnBA,GAASjQ,KAAKsR,WAAWD,EAAchB,EAAYC,GACnDtQ,KAAKuR,qBAAqBF,EAAcpB,EAAQmB,EAAkBnK,GAAI+J,IACrEhR,MAGIiQ,GAGTqB,WAAY,SAASD,EAAchB,EAAYC,GAE7C,GAAIL,GAASoB,EAAahB,EAU1B,OARKJ,KAEHA,EAAS,GAAIpS,GAAWsS,OAAOE,EAAYC,GAC3Ce,EAAahB,GAAcJ,EAE3BoB,EAAa5B,WAAWY,GAAcJ,GAGjCA,GAGTsB,qBAAsB,SAASF,EAAcpB,EAAQuB,EAAKtT,GACxD,GAAIuT,GACAjB,CAEAxS,GAAEiC,WAAWuR,IAEfC,EAAKD,EACLhB,GAAkB,GAETxS,EAAE6H,SAAS2L,IAEpBC,EAAKD,EAAIE,OACTlB,EAAkBgB,EAAIhB,iBAItBA,GAAkB,EAIhBiB,GACFxB,EAAOa,cAAcW,EAAIvT,GAK3B+R,EAAOO,gBAAkBP,EAAOO,iBAAmBA,EAG/CP,EAAOO,kBAAoBP,EAAO0B,8BAGpC1B,EAAO0B,6BAA8B,EAGrCN,EAAazB,eAAe,SAASzQ,GAC/B8Q,EAAOO,iBACTP,EAAOH,MAAM3Q,SAWdtB,GACNmC,KAAMjC,SAAUC"} \ No newline at end of file +{"version":3,"file":"lib/core/backbone.marionette.min.js","sources":["backbone.marionette.js"],"names":["Marionette","global","Backbone","_","slice","args","protoSlice","call","throwError","message","name","error","Error","$","Array","prototype","extend","Model","getOption","target","optionName","value","options","undefined","triggerMethod","getEventName","match","prefix","eventName","toUpperCase","splitter","event","methodName","replace","method","this","isFunction","trigger","apply","arguments","tail","MonitorDOMRefresh","documentElement","handleShow","view","_isShown","triggerDOMRefresh","handleRender","_isRendered","isInDOM","contains","el","listenTo","document","bindFromStrings","entity","evt","methods","methodNames","split","each","bindToFunction","unbindFromStrings","stopListening","unbindToFunction","iterateEvents","bindings","functionCallback","stringCallback","bindEntityEvents","unbindEntityEvents","Callbacks","_deferred","Deferred","_callbacks","add","callback","contextOverride","push","cb","ctx","done","context","run","resolve","reset","callbacks","Controller","initialize","Events","close","unbind","Region","err","buildRegion","regionConfig","defaultRegionType","regionIsString","regionSelectorIsString","selector","regionTypeIsUndefined","regionType","regionIsType","RegionType","region","parentEl","getEl","find","show","ensureEl","isViewClosed","isClosed","isUndefined","$el","isDifferentView","currentView","render","open","length","empty","append","remove","attachView","RegionManager","constructor","_regions","addRegions","regionDefinitions","defaults","regions","definition","addRegion","isObject","isString","hasSelector","_store","get","removeRegion","_remove","removeRegions","closeRegions","_setLength","size","values","concat","toArray","TemplateCache","templateId","templateCaches","cachedTemplate","load","clear","i","compiledTemplate","template","loadTemplate","compileTemplate","html","rawTemplate","Renderer","data","templateFunc","View","bindAll","result","events","normalizeUIKeys","onShowCalled","getTemplate","mixinTemplateHelpers","templateHelpers","hash","keys","v","ui","configureTriggers","triggers","triggerEvents","key","hasOptions","e","prevent","preventDefault","stop","stopPropagation","shouldPrevent","shouldStop","model","collection","delegateEvents","_delegateDOMEvents","combinedEvents","undelegateEvents","shouldClose","unbindUIElements","bindUIElements","_uiBindings","ItemView","serializeData","toJSON","items","CollectionView","itemViewEventPrefix","_initChildViewStorage","_initialEvents","initRenderBuffer","elBuffer","createDocumentFragment","startBuffering","isBuffering","endBuffering","appendBuffer","addChildView","removeItemView","item","closeEmptyView","getItemView","index","indexOf","addItemView","children","child","triggerBeforeRender","triggerRendered","_renderChildren","closeChildren","showCollection","showEmptyView","EmptyView","getEmptyView","_showingEmptyView","itemView","itemViewOptions","buildItemView","addChildViewEventForwarding","renderItemView","rootEvent","itemEvents","getItemEvents","splice","appendHtml","ItemViewType","findByModel","removeChildView","checkEmpty","collectionView","buffer","appendChild","ChildViewContainer","CompositeView","once","isRendered","resetItemViewContainer","renderModel","compositeView","$container","getItemViewContainer","containerView","$itemViewContainer","container","itemViewContainer","Layout","_firstRender","_initializeRegions","_reInitializeRegions","regionManager","_buildRegions","that","_initRegionManager","AppRouter","Router","appRoutes","controller","_getController","processAppRoutes","appRoute","route","_addAppRoute","routeNames","reverse","bind","Application","_initCallbacks","vent","Wreqr","EventAggregator","commands","Commands","reqres","RequestResponse","submodules","execute","request","addInitializer","initializer","start","_regionManager","getRegion","module","unshift","Module","create","moduleName","app","_setupInitializersAndFinalizers","startWithParent","_initializerCallbacks","addFinalizer","_finalizerCallbacks","_isInitialized","mod","addDefinition","moduleDefinition","customArgs","_runModuleDefinition","flatten","moduleNames","moduleDefinitions","parentModule","_getModule","_addModuleDefinition","def","fn","define","startWithParentIsConfigured"],"mappings":"AAAA,GAAIA,YAAa,SAAUC,EAAQC,EAAUC,GAC3C,YAcF,SAASC,GAAMC,GACb,MAAOC,GAAWC,KAAKF,GAGzB,QAASG,GAAWC,EAASC,GAC3B,GAAIC,GAAQ,GAAIC,OAAMH,EAEtB,MADAE,GAAMD,KAAOA,GAAQ,QACfC,EAlBN,GAAIX,KACJE,GAASF,WAAaA,EAGtBA,EAAWa,EAAIX,EAASW,CAM1B,IAAIP,GAAaQ,MAAMC,UAAUX,KA6+D/B,OA99DFJ,GAAWgB,OAASd,EAASe,MAAMD,OAOnChB,EAAWkB,UAAY,SAASC,EAAQC,GACtC,GAAKD,GAAWC,EAAhB,CACA,GAAIC,EAQJ,OALEA,GADEF,EAAOG,SAAYF,IAAcD,GAAOG,SAA4CC,SAA/BJ,EAAOG,QAAQF,GAC9DD,EAAOG,QAAQF,GAEfD,EAAOC,KAanBpB,EAAWwB,cAAgB,WAOzB,QAASC,GAAaC,EAAOC,EAAQC,GACnC,MAAOA,GAAUC,cALnB,GAAIC,GAAW,cASXN,EAAgB,SAASO,GAE3B,GAAIC,GAAa,KAAOD,EAAME,QAAQH,EAAUL,GAC5CS,EAASC,KAAKH,EAQlB,OALG7B,GAAEiC,WAAWD,KAAKE,UACnBF,KAAKE,QAAQC,MAAMH,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KAAMjC,SAAUC"} \ No newline at end of file diff --git a/lib/core/backbone.marionette.min.js b/lib/core/backbone.marionette.min.js index 8abdd98849..2553889e22 100644 --- a/lib/core/backbone.marionette.min.js +++ b/lib/core/backbone.marionette.min.js @@ -1,8 +1,8 @@ // MarionetteJS (Backbone.Marionette) // ---------------------------------- -// v1.4.1 +// v1.5.0 // -// Copyright (c)2013 Derick Bailey, Muted Solutions, LLC. +// Copyright (c)2014 Derick Bailey, Muted Solutions, LLC. // Distributed under MIT license // // http://marionettejs.com @@ -17,5 +17,5 @@ * https://github.com/marionettejs/backbone.wreqr/ */ -var Marionette=function(a,b,c){"use strict";function d(a){return g.call(a)}function e(a,b){var c=new Error(a);throw c.name=b||"Error",c}var f={};b.Marionette=f,f.$=b.$;var g=Array.prototype.slice;return f.extend=b.Model.extend,f.getOption=function(a,b){if(a&&b){var c;return c=a.options&&b in a.options&&void 0!==a.options[b]?a.options[b]:a[b]}},f.triggerMethod=function(){function a(a,b,c){return c.toUpperCase()}var b=/(^|:)(\w)/gi,d=function(d){var e="on"+d.replace(b,a),f=this[e];return c.isFunction(this.trigger)&&this.trigger.apply(this,arguments),c.isFunction(f)?f.apply(this,c.tail(arguments)):void 0};return d}(),f.MonitorDOMRefresh=function(){function a(a){a._isShown=!0,d(a)}function b(a){a._isRendered=!0,d(a)}function d(a){a._isShown&&a._isRendered&&c.isFunction(a.triggerMethod)&&a.triggerMethod("dom:refresh")}return function(c){c.listenTo(c,"show",function(){a(c)}),c.listenTo(c,"render",function(){b(c)})}}(),function(a){function b(a,b,d,f){var g=f.split(/\s+/);c.each(g,function(c){var f=a[c];f||e("Method '"+c+"' was configured as an event handler, but does not exist."),a.listenTo(b,d,f,a)})}function d(a,b,c,d){a.listenTo(b,c,d,a)}function f(a,b,d,e){var f=e.split(/\s+/);c.each(f,function(c){var e=a[c];a.stopListening(b,d,e,a)})}function g(a,b,c,d){a.stopListening(b,c,d,a)}function h(a,b,d,e,f){b&&d&&(c.isFunction(d)&&(d=d.call(a)),c.each(d,function(d,g){c.isFunction(d)?e(a,b,g,d):f(a,b,g,d)}))}a.bindEntityEvents=function(a,c,e){h(a,c,e,d,b)},a.unbindEntityEvents=function(a,b,c){h(a,b,c,g,f)}}(f),f.Callbacks=function(){this._deferred=f.$.Deferred(),this._callbacks=[]},c.extend(f.Callbacks.prototype,{add:function(a,b){this._callbacks.push({cb:a,ctx:b}),this._deferred.done(function(c,d){b&&(c=b),a.call(c,d)})},run:function(a,b){this._deferred.resolve(b,a)},reset:function(){var a=this._callbacks;this._deferred=f.$.Deferred(),this._callbacks=[],c.each(a,function(a){this.add(a.cb,a.ctx)},this)}}),f.Controller=function(a){this.triggerMethod=f.triggerMethod,this.options=a||{},c.isFunction(this.initialize)&&this.initialize(this.options)},f.Controller.extend=f.extend,c.extend(f.Controller.prototype,b.Events,{close:function(){this.stopListening(),this.triggerMethod("close"),this.unbind()}}),f.Region=function(a){if(this.options=a||{},this.el=f.getOption(this,"el"),!this.el){var b=new Error("An 'el' must be specified for a region.");throw b.name="NoElError",b}if(this.initialize){var c=Array.prototype.slice.apply(arguments);this.initialize.apply(this,c)}},c.extend(f.Region,{buildRegion:function(a,b){var d="string"==typeof a,e="string"==typeof a.selector,f="undefined"==typeof a.regionType,g="function"==typeof a;if(!g&&!d&&!e)throw new Error("Region must be specified as a Region type, a selector string or an object with selector property");var h,i;d&&(h=a),a.selector&&(h=a.selector),g&&(i=a),!g&&f&&(i=b),a.regionType&&(i=a.regionType);var j=new i({el:h});return a.parentEl&&(j.getEl=function(b){var d=a.parentEl;return c.isFunction(d)&&(d=d()),d.find(b)}),j}}),c.extend(f.Region.prototype,b.Events,{show:function(a){this.ensureEl();var b=a.isClosed||c.isUndefined(a.$el),d=a!==this.currentView;d&&this.close(),a.render(),(d||b)&&this.open(a),this.currentView=a,f.triggerMethod.call(this,"show",a),f.triggerMethod.call(a,"show")},ensureEl:function(){this.$el&&0!==this.$el.length||(this.$el=this.getEl(this.el))},getEl:function(a){return f.$(a)},open:function(a){this.$el.empty().append(a.el)},close:function(){var a=this.currentView;a&&!a.isClosed&&(a.close?a.close():a.remove&&a.remove(),f.triggerMethod.call(this,"close"),delete this.currentView)},attachView:function(a){this.currentView=a},reset:function(){this.close(),delete this.$el}}),f.Region.extend=f.extend,f.RegionManager=function(a){var b=a.Controller.extend({constructor:function(b){this._regions={},a.Controller.prototype.constructor.call(this,b)},addRegions:function(a,b){var d={};return c.each(a,function(a,e){"string"==typeof a&&(a={selector:a}),a.selector&&(a=c.defaults({},a,b));var f=this.addRegion(e,a);d[e]=f},this),d},addRegion:function(b,d){var e,f=c.isObject(d),g=c.isString(d),h=!!d.selector;return e=g||f&&h?a.Region.buildRegion(d,a.Region):c.isFunction(d)?a.Region.buildRegion(d,a.Region):d,this._store(b,e),this.triggerMethod("region:add",b,e),e},get:function(a){return this._regions[a]},removeRegion:function(a){var b=this._regions[a];this._remove(a,b)},removeRegions:function(){c.each(this._regions,function(a,b){this._remove(b,a)},this)},closeRegions:function(){c.each(this._regions,function(a){a.close()},this)},close:function(){this.removeRegions();var b=Array.prototype.slice.call(arguments);a.Controller.prototype.close.apply(this,b)},_store:function(a,b){this._regions[a]=b,this._setLength()},_remove:function(a,b){b.close(),delete this._regions[a],this._setLength(),this.triggerMethod("region:remove",a,b)},_setLength:function(){this.length=c.size(this._regions)}}),d=["forEach","each","map","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","toArray","first","initial","rest","last","without","isEmpty","pluck"];return c.each(d,function(a){b.prototype[a]=function(){var b=c.values(this._regions),d=[b].concat(c.toArray(arguments));return c[a].apply(c,d)}}),b}(f),f.TemplateCache=function(a){this.templateId=a},c.extend(f.TemplateCache,{templateCaches:{},get:function(a){var b=this.templateCaches[a];return b||(b=new f.TemplateCache(a),this.templateCaches[a]=b),b.load()},clear:function(){var a,b=d(arguments),c=b.length;if(c>0)for(a=0;c>a;a++)delete this.templateCaches[b[a]];else this.templateCaches={}}}),c.extend(f.TemplateCache.prototype,{load:function(){if(this.compiledTemplate)return this.compiledTemplate;var a=this.loadTemplate(this.templateId);return this.compiledTemplate=this.compileTemplate(a),this.compiledTemplate},loadTemplate:function(a){var b=f.$(a).html();return b&&0!==b.length||e("Could not find template: '"+a+"'","NoTemplateError"),b},compileTemplate:function(a){return c.template(a)}}),f.Renderer={render:function(a,b){if(!a){var c=new Error("Cannot render the template since it's false, null or undefined.");throw c.name="TemplateNotFoundError",c}var d;return d="function"==typeof a?a:f.TemplateCache.get(a),d(b)}},f.View=b.View.extend({constructor:function(a){c.bindAll(this,"render");var d=Array.prototype.slice.apply(arguments);this.options=c.extend({},this.options,a),this.events=this.normalizeUIKeys(c.result(this,"events")),b.View.prototype.constructor.apply(this,d),f.MonitorDOMRefresh(this),this.listenTo(this,"show",this.onShowCalled,this)},triggerMethod:f.triggerMethod,getTemplate:function(){return f.getOption(this,"template")},mixinTemplateHelpers:function(a){a=a||{};var b=f.getOption(this,"templateHelpers");return c.isFunction(b)&&(b=b.call(this)),c.extend(a,b)},normalizeUIKeys:function(a){return"undefined"!=typeof a?(c.each(c.keys(a),function(b){var c=b.split("@ui.");2===c.length&&(a[c[0]+this.ui[c[1]]]=a[b],delete a[b])},this),a):void 0},configureTriggers:function(){if(this.triggers){var a={},b=this.normalizeUIKeys(c.result(this,"triggers"));return c.each(b,function(b,d){var e=c.isObject(b),f=e?b.event:b;a[d]=function(a){if(a){var c=a.preventDefault,d=a.stopPropagation,g=e?b.preventDefault:c,h=e?b.stopPropagation:d;g&&c&&c.apply(a),h&&d&&d.apply(a)}var i={view:this,model:this.model,collection:this.collection};this.triggerMethod(f,i)}},this),a}},delegateEvents:function(a){this._delegateDOMEvents(a),f.bindEntityEvents(this,this.model,f.getOption(this,"modelEvents")),f.bindEntityEvents(this,this.collection,f.getOption(this,"collectionEvents"))},_delegateDOMEvents:function(a){a=a||this.events,c.isFunction(a)&&(a=a.call(this));var d={},e=this.configureTriggers();c.extend(d,a,e),b.View.prototype.delegateEvents.call(this,d)},undelegateEvents:function(){var a=Array.prototype.slice.call(arguments);b.View.prototype.undelegateEvents.apply(this,a),f.unbindEntityEvents(this,this.model,f.getOption(this,"modelEvents")),f.unbindEntityEvents(this,this.collection,f.getOption(this,"collectionEvents"))},onShowCalled:function(){},close:function(){if(!this.isClosed){var a=this.triggerMethod("before:close");a!==!1&&(this.isClosed=!0,this.triggerMethod("close"),this.unbindUIElements(),this.remove())}},bindUIElements:function(){if(this.ui){this._uiBindings||(this._uiBindings=this.ui);var a=c.result(this,"_uiBindings");this.ui={},c.each(c.keys(a),function(b){var c=a[b];this.ui[b]=this.$(c)},this)}},unbindUIElements:function(){this.ui&&this._uiBindings&&(c.each(this.ui,function(a,b){delete this.ui[b]},this),this.ui=this._uiBindings,delete this._uiBindings)}}),f.ItemView=f.View.extend({constructor:function(){f.View.prototype.constructor.apply(this,d(arguments))},serializeData:function(){var a={};return this.model?a=this.model.toJSON():this.collection&&(a={items:this.collection.toJSON()}),a},render:function(){this.isClosed=!1,this.triggerMethod("before:render",this),this.triggerMethod("item:before:render",this);var a=this.serializeData();a=this.mixinTemplateHelpers(a);var b=this.getTemplate(),c=f.Renderer.render(b,a);return this.$el.html(c),this.bindUIElements(),this.triggerMethod("render",this),this.triggerMethod("item:rendered",this),this},close:function(){this.isClosed||(this.triggerMethod("item:before:close"),f.View.prototype.close.apply(this,d(arguments)),this.triggerMethod("item:closed"))}}),f.CollectionView=f.View.extend({itemViewEventPrefix:"itemview",constructor:function(){this._initChildViewStorage(),f.View.prototype.constructor.apply(this,d(arguments)),this._initialEvents(),this.initRenderBuffer()},initRenderBuffer:function(){this.elBuffer=document.createDocumentFragment()},startBuffering:function(){this.initRenderBuffer(),this.isBuffering=!0},endBuffering:function(){this.appendBuffer(this,this.elBuffer),this.initRenderBuffer(),this.isBuffering=!1},_initialEvents:function(){this.collection&&(this.listenTo(this.collection,"add",this.addChildView,this),this.listenTo(this.collection,"remove",this.removeItemView,this),this.listenTo(this.collection,"reset",this.render,this))},addChildView:function(a){this.closeEmptyView();var b=this.getItemView(a),c=this.collection.indexOf(a);this.addItemView(a,b,c)},onShowCalled:function(){this.children.each(function(a){f.triggerMethod.call(a,"show")})},triggerBeforeRender:function(){this.triggerMethod("before:render",this),this.triggerMethod("collection:before:render",this)},triggerRendered:function(){this.triggerMethod("render",this),this.triggerMethod("collection:rendered",this)},render:function(){return this.isClosed=!1,this.triggerBeforeRender(),this._renderChildren(),this.triggerRendered(),this},_renderChildren:function(){this.startBuffering(),this.closeEmptyView(),this.closeChildren(),this.collection&&this.collection.length>0?this.showCollection():this.showEmptyView(),this.endBuffering()},showCollection:function(){var a;this.collection.each(function(b,c){a=this.getItemView(b),this.addItemView(b,a,c)},this)},showEmptyView:function(){var a=this.getEmptyView();if(a&&!this._showingEmptyView){this._showingEmptyView=!0;var c=new b.Model;this.addItemView(c,a,0)}},closeEmptyView:function(){this._showingEmptyView&&(this.closeChildren(),delete this._showingEmptyView)},getEmptyView:function(){return f.getOption(this,"emptyView")},getItemView:function(){var a=f.getOption(this,"itemView");return a||e("An `itemView` must be specified","NoItemViewError"),a},addItemView:function(a,b,d){var e=f.getOption(this,"itemViewOptions");c.isFunction(e)&&(e=e.call(this,a,d));var g=this.buildItemView(a,b,e);this.addChildViewEventForwarding(g),this.triggerMethod("before:item:added",g),this.children.add(g),this.renderItemView(g,d),this._isShown&&f.triggerMethod.call(g,"show"),this.triggerMethod("after:item:added",g)},addChildViewEventForwarding:function(a){var b=f.getOption(this,"itemViewEventPrefix");this.listenTo(a,"all",function(){var c=d(arguments);c[0]=b+":"+c[0],c.splice(1,0,a),f.triggerMethod.apply(this,c)},this)},renderItemView:function(a,b){a.render(),this.appendHtml(this,a,b)},buildItemView:function(a,b,d){var e=c.extend({model:a},d);return new b(e)},removeItemView:function(a){var b=this.children.findByModel(a);this.removeChildView(b),this.checkEmpty()},removeChildView:function(a){a&&(this.stopListening(a),a.close?a.close():a.remove&&a.remove(),this.children.remove(a)),this.triggerMethod("item:removed",a)},checkEmpty:function(){this.collection&&0!==this.collection.length||this.showEmptyView()},appendBuffer:function(a,b){a.$el.append(b)},appendHtml:function(a,b){a.isBuffering?a.elBuffer.appendChild(b.el):a.$el.append(b.el)},_initChildViewStorage:function(){this.children=new b.ChildViewContainer},close:function(){this.isClosed||(this.triggerMethod("collection:before:close"),this.closeChildren(),this.triggerMethod("collection:closed"),f.View.prototype.close.apply(this,d(arguments)))},closeChildren:function(){this.children.each(function(a){this.removeChildView(a)},this),this.checkEmpty()}}),f.CompositeView=f.CollectionView.extend({constructor:function(){f.CollectionView.prototype.constructor.apply(this,d(arguments))},_initialEvents:function(){this.once("render",function(){this.collection&&(this.listenTo(this.collection,"add",this.addChildView,this),this.listenTo(this.collection,"remove",this.removeItemView,this),this.listenTo(this.collection,"reset",this._renderChildren,this))})},getItemView:function(){var a=f.getOption(this,"itemView")||this.constructor;return a||e("An `itemView` must be specified","NoItemViewError"),a},serializeData:function(){var a={};return this.model&&(a=this.model.toJSON()),a},render:function(){this.isRendered=!0,this.isClosed=!1,this.resetItemViewContainer(),this.triggerBeforeRender();var a=this.renderModel();return this.$el.html(a),this.bindUIElements(),this.triggerMethod("composite:model:rendered"),this._renderChildren(),this.triggerMethod("composite:rendered"),this.triggerRendered(),this},_renderChildren:function(){this.isRendered&&(f.CollectionView.prototype._renderChildren.call(this),this.triggerMethod("composite:collection:rendered"))},renderModel:function(){var a={};a=this.serializeData(),a=this.mixinTemplateHelpers(a);var b=this.getTemplate();return f.Renderer.render(b,a)},appendBuffer:function(a,b){var c=this.getItemViewContainer(a);c.append(b)},appendHtml:function(a,b){if(a.isBuffering)a.elBuffer.appendChild(b.el);else{var c=this.getItemViewContainer(a);c.append(b.el)}},getItemViewContainer:function(a){if("$itemViewContainer"in a)return a.$itemViewContainer;var b,d=f.getOption(a,"itemViewContainer");if(d){var g=c.isFunction(d)?d():d;b=a.$(g),b.length<=0&&e("The specified `itemViewContainer` was not found: "+a.itemViewContainer,"ItemViewContainerMissingError")}else b=a.$el;return a.$itemViewContainer=b,b},resetItemViewContainer:function(){this.$itemViewContainer&&delete this.$itemViewContainer}}),f.Layout=f.ItemView.extend({regionType:f.Region,constructor:function(a){a=a||{},this._firstRender=!0,this._initializeRegions(a),f.ItemView.prototype.constructor.call(this,a)},render:function(){this.isClosed&&this._initializeRegions(),this._firstRender?this._firstRender=!1:this.isClosed||this._reInitializeRegions();var a=Array.prototype.slice.apply(arguments),b=f.ItemView.prototype.render.apply(this,a);return b},close:function(){if(!this.isClosed){this.regionManager.close();var a=Array.prototype.slice.apply(arguments);f.ItemView.prototype.close.apply(this,a)}},addRegion:function(a,b){var c={};return c[a]=b,this._buildRegions(c)[a]},addRegions:function(a){return this.regions=c.extend({},this.regions,a),this._buildRegions(a)},removeRegion:function(a){return delete this.regions[a],this.regionManager.removeRegion(a)},_buildRegions:function(a){var b=this,c={regionType:f.getOption(this,"regionType"),parentEl:function(){return b.$el}};return this.regionManager.addRegions(a,c)},_initializeRegions:function(a){var b;this._initRegionManager(),b=c.isFunction(this.regions)?this.regions(a):this.regions||{},this.addRegions(b)},_reInitializeRegions:function(){this.regionManager.closeRegions(),this.regionManager.each(function(a){a.reset()})},_initRegionManager:function(){this.regionManager=new f.RegionManager,this.listenTo(this.regionManager,"region:add",function(a,b){this[a]=b,this.trigger("region:add",a,b)}),this.listenTo(this.regionManager,"region:remove",function(a,b){delete this[a],this.trigger("region:remove",a,b)})}}),f.AppRouter=b.Router.extend({constructor:function(a){b.Router.prototype.constructor.apply(this,d(arguments)),this.options=a||{};var c=f.getOption(this,"appRoutes"),e=this._getController();this.processAppRoutes(e,c)},appRoute:function(a,b){var c=this._getController();this._addAppRoute(c,a,b)},processAppRoutes:function(a,b){if(b){var d=c.keys(b).reverse();c.each(d,function(c){this._addAppRoute(a,c,b[c])},this)}},_getController:function(){return f.getOption(this,"controller")},_addAppRoute:function(a,b,d){var e=a[d];if(!e)throw new Error("Method '"+d+"' was not found on the controller");this.route(b,d,c.bind(e,a))}}),f.Application=function(a){this._initRegionManager(),this._initCallbacks=new f.Callbacks,this.vent=new b.Wreqr.EventAggregator,this.commands=new b.Wreqr.Commands,this.reqres=new b.Wreqr.RequestResponse,this.submodules={},c.extend(this,a),this.triggerMethod=f.triggerMethod},c.extend(f.Application.prototype,b.Events,{execute:function(){var a=Array.prototype.slice.apply(arguments);this.commands.execute.apply(this.commands,a)},request:function(){var a=Array.prototype.slice.apply(arguments);return this.reqres.request.apply(this.reqres,a)},addInitializer:function(a){this._initCallbacks.add(a)},start:function(a){this.triggerMethod("initialize:before",a),this._initCallbacks.run(a,this),this.triggerMethod("initialize:after",a),this.triggerMethod("start",a)},addRegions:function(a){return this._regionManager.addRegions(a)},closeRegions:function(){this._regionManager.closeRegions()},removeRegion:function(a){this._regionManager.removeRegion(a)},getRegion:function(a){return this._regionManager.get(a)},module:function(){var a=d(arguments);return a.unshift(this),f.Module.create.apply(f.Module,a)},_initRegionManager:function(){this._regionManager=new f.RegionManager,this.listenTo(this._regionManager,"region:add",function(a,b){this[a]=b}),this.listenTo(this._regionManager,"region:remove",function(a){delete this[a]})}}),f.Application.extend=f.extend,f.Module=function(a,b){this.moduleName=a,this.submodules={},this._setupInitializersAndFinalizers(),this.app=b,this.startWithParent=!0,this.triggerMethod=f.triggerMethod},c.extend(f.Module.prototype,b.Events,{addInitializer:function(a){this._initializerCallbacks.add(a)},addFinalizer:function(a){this._finalizerCallbacks.add(a)},start:function(a){this._isInitialized||(c.each(this.submodules,function(b){b.startWithParent&&b.start(a)}),this.triggerMethod("before:start",a),this._initializerCallbacks.run(a,this),this._isInitialized=!0,this.triggerMethod("start",a))},stop:function(){this._isInitialized&&(this._isInitialized=!1,f.triggerMethod.call(this,"before:stop"),c.each(this.submodules,function(a){a.stop()}),this._finalizerCallbacks.run(void 0,this),this._initializerCallbacks.reset(),this._finalizerCallbacks.reset(),f.triggerMethod.call(this,"stop"))},addDefinition:function(a,b){this._runModuleDefinition(a,b)},_runModuleDefinition:function(a,d){if(a){var e=c.flatten([this,this.app,b,f,f.$,c,d]);a.apply(this,e)}},_setupInitializersAndFinalizers:function(){this._initializerCallbacks=new f.Callbacks,this._finalizerCallbacks=new f.Callbacks}}),c.extend(f.Module,{create:function(a,b,e){var f=a,g=d(arguments);g.splice(0,3),b=b.split(".");var h=b.length,i=[];return i[h-1]=e,c.each(b,function(b,c){var d=f;f=this._getModule(d,b,a),this._addModuleDefinition(d,f,i[c],g)},this),f},_getModule:function(a,b,c){var d=a[b];return d||(d=new f.Module(b,c),a[b]=d,a.submodules[b]=d),d},_addModuleDefinition:function(a,b,d,e){var f,g;c.isFunction(d)?(f=d,g=!0):c.isObject(d)?(f=d.define,g=d.startWithParent):g=!0,f&&b.addDefinition(f,e),b.startWithParent=b.startWithParent&&g,b.startWithParent&&!b.startWithParentIsConfigured&&(b.startWithParentIsConfigured=!0,a.addInitializer(function(a){b.startWithParent&&b.start(a)}))}}),f}(this,Backbone,_); +var Marionette=function(a,b,c){"use strict";function d(a){return g.call(a)}function e(a,b){var c=new Error(a);throw c.name=b||"Error",c}var f={};b.Marionette=f,f.$=b.$;var g=Array.prototype.slice;return f.extend=b.Model.extend,f.getOption=function(a,b){if(a&&b){var c;return c=a.options&&b in a.options&&void 0!==a.options[b]?a.options[b]:a[b]}},f.triggerMethod=function(){function a(a,b,c){return c.toUpperCase()}var b=/(^|:)(\w)/gi,d=function(d){var e="on"+d.replace(b,a),f=this[e];return c.isFunction(this.trigger)&&this.trigger.apply(this,arguments),c.isFunction(f)?f.apply(this,c.tail(arguments)):void 0};return d}(),f.MonitorDOMRefresh=function(a){function b(a){a._isShown=!0,e(a)}function d(a){a._isRendered=!0,e(a)}function e(a){a._isShown&&a._isRendered&&f(a)&&c.isFunction(a.triggerMethod)&&a.triggerMethod("dom:refresh")}function f(b){return a.contains(b.el)}return function(a){a.listenTo(a,"show",function(){b(a)}),a.listenTo(a,"render",function(){d(a)})}}(document.documentElement),function(a){function b(a,b,d,f){var g=f.split(/\s+/);c.each(g,function(c){var f=a[c];f||e("Method '"+c+"' was configured as an event handler, but does not exist."),a.listenTo(b,d,f,a)})}function d(a,b,c,d){a.listenTo(b,c,d,a)}function f(a,b,d,e){var f=e.split(/\s+/);c.each(f,function(c){var e=a[c];a.stopListening(b,d,e,a)})}function g(a,b,c,d){a.stopListening(b,c,d,a)}function h(a,b,d,e,f){b&&d&&(c.isFunction(d)&&(d=d.call(a)),c.each(d,function(d,g){c.isFunction(d)?e(a,b,g,d):f(a,b,g,d)}))}a.bindEntityEvents=function(a,c,e){h(a,c,e,d,b)},a.unbindEntityEvents=function(a,b,c){h(a,b,c,g,f)}}(f),f.Callbacks=function(){this._deferred=f.$.Deferred(),this._callbacks=[]},c.extend(f.Callbacks.prototype,{add:function(a,b){this._callbacks.push({cb:a,ctx:b}),this._deferred.done(function(c,d){b&&(c=b),a.call(c,d)})},run:function(a,b){this._deferred.resolve(b,a)},reset:function(){var a=this._callbacks;this._deferred=f.$.Deferred(),this._callbacks=[],c.each(a,function(a){this.add(a.cb,a.ctx)},this)}}),f.Controller=function(a){this.triggerMethod=f.triggerMethod,this.options=a||{},c.isFunction(this.initialize)&&this.initialize(this.options)},f.Controller.extend=f.extend,c.extend(f.Controller.prototype,b.Events,{close:function(){this.stopListening(),this.triggerMethod("close"),this.unbind()}}),f.Region=function(a){if(this.options=a||{},this.el=f.getOption(this,"el"),!this.el){var b=new Error("An 'el' must be specified for a region.");throw b.name="NoElError",b}if(this.initialize){var c=Array.prototype.slice.apply(arguments);this.initialize.apply(this,c)}},c.extend(f.Region,{buildRegion:function(a,b){var d="string"==typeof a,e="string"==typeof a.selector,f="undefined"==typeof a.regionType,g="function"==typeof a;if(!g&&!d&&!e)throw new Error("Region must be specified as a Region type, a selector string or an object with selector property");var h,i;d&&(h=a),a.selector&&(h=a.selector),g&&(i=a),!g&&f&&(i=b),a.regionType&&(i=a.regionType);var j=new i({el:h});return a.parentEl&&(j.getEl=function(b){var d=a.parentEl;return c.isFunction(d)&&(d=d()),d.find(b)}),j}}),c.extend(f.Region.prototype,b.Events,{show:function(a){this.ensureEl();var b=a.isClosed||c.isUndefined(a.$el),d=a!==this.currentView;d&&this.close(),a.render(),(d||b)&&this.open(a),this.currentView=a,f.triggerMethod.call(this,"show",a),f.triggerMethod.call(a,"show")},ensureEl:function(){this.$el&&0!==this.$el.length||(this.$el=this.getEl(this.el))},getEl:function(a){return f.$(a)},open:function(a){this.$el.empty().append(a.el)},close:function(){var a=this.currentView;a&&!a.isClosed&&(a.close?a.close():a.remove&&a.remove(),f.triggerMethod.call(this,"close",a),delete this.currentView)},attachView:function(a){this.currentView=a},reset:function(){this.close(),delete this.$el}}),f.Region.extend=f.extend,f.RegionManager=function(a){var b=a.Controller.extend({constructor:function(b){this._regions={},a.Controller.prototype.constructor.call(this,b)},addRegions:function(a,b){var d={};return c.each(a,function(a,e){"string"==typeof a&&(a={selector:a}),a.selector&&(a=c.defaults({},a,b));var f=this.addRegion(e,a);d[e]=f},this),d},addRegion:function(b,d){var e,f=c.isObject(d),g=c.isString(d),h=!!d.selector;return e=g||f&&h?a.Region.buildRegion(d,a.Region):c.isFunction(d)?a.Region.buildRegion(d,a.Region):d,this._store(b,e),this.triggerMethod("region:add",b,e),e},get:function(a){return this._regions[a]},removeRegion:function(a){var b=this._regions[a];this._remove(a,b)},removeRegions:function(){c.each(this._regions,function(a,b){this._remove(b,a)},this)},closeRegions:function(){c.each(this._regions,function(a){a.close()},this)},close:function(){this.removeRegions();var b=Array.prototype.slice.call(arguments);a.Controller.prototype.close.apply(this,b)},_store:function(a,b){this._regions[a]=b,this._setLength()},_remove:function(a,b){b.close(),delete this._regions[a],this._setLength(),this.triggerMethod("region:remove",a,b)},_setLength:function(){this.length=c.size(this._regions)}}),d=["forEach","each","map","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","toArray","first","initial","rest","last","without","isEmpty","pluck"];return c.each(d,function(a){b.prototype[a]=function(){var b=c.values(this._regions),d=[b].concat(c.toArray(arguments));return c[a].apply(c,d)}}),b}(f),f.TemplateCache=function(a){this.templateId=a},c.extend(f.TemplateCache,{templateCaches:{},get:function(a){var b=this.templateCaches[a];return b||(b=new f.TemplateCache(a),this.templateCaches[a]=b),b.load()},clear:function(){var a,b=d(arguments),c=b.length;if(c>0)for(a=0;c>a;a++)delete this.templateCaches[b[a]];else this.templateCaches={}}}),c.extend(f.TemplateCache.prototype,{load:function(){if(this.compiledTemplate)return this.compiledTemplate;var a=this.loadTemplate(this.templateId);return this.compiledTemplate=this.compileTemplate(a),this.compiledTemplate},loadTemplate:function(a){var b=f.$(a).html();return b&&0!==b.length||e("Could not find template: '"+a+"'","NoTemplateError"),b},compileTemplate:function(a){return c.template(a)}}),f.Renderer={render:function(a,b){if(!a){var c=new Error("Cannot render the template since it's false, null or undefined.");throw c.name="TemplateNotFoundError",c}var d;return d="function"==typeof a?a:f.TemplateCache.get(a),d(b)}},f.View=b.View.extend({constructor:function(a){c.bindAll(this,"render");var d=Array.prototype.slice.apply(arguments);this.options=c.extend({},c.result(this,"options"),c.isFunction(a)?a.call(this):a),this.events=this.normalizeUIKeys(c.result(this,"events")),b.View.prototype.constructor.apply(this,d),f.MonitorDOMRefresh(this),this.listenTo(this,"show",this.onShowCalled,this)},triggerMethod:f.triggerMethod,getTemplate:function(){return f.getOption(this,"template")},mixinTemplateHelpers:function(a){a=a||{};var b=f.getOption(this,"templateHelpers");return c.isFunction(b)&&(b=b.call(this)),c.extend(a,b)},normalizeUIKeys:function(a){return"undefined"!=typeof a?(c.each(c.keys(a),function(b){var c=b.split("@ui.");2===c.length&&(a[c[0]+this.ui[c[1]]]=a[b],delete a[b])},this),a):void 0},configureTriggers:function(){if(this.triggers){var a={},b=this.normalizeUIKeys(c.result(this,"triggers"));return c.each(b,function(b,d){var e=c.isObject(b),f=e?b.event:b;a[d]=function(a){if(a){var c=a.preventDefault,d=a.stopPropagation,g=e?b.preventDefault:c,h=e?b.stopPropagation:d;g&&c&&c.apply(a),h&&d&&d.apply(a)}var i={view:this,model:this.model,collection:this.collection};this.triggerMethod(f,i)}},this),a}},delegateEvents:function(a){this._delegateDOMEvents(a),f.bindEntityEvents(this,this.model,f.getOption(this,"modelEvents")),f.bindEntityEvents(this,this.collection,f.getOption(this,"collectionEvents"))},_delegateDOMEvents:function(a){a=a||this.events,c.isFunction(a)&&(a=a.call(this));var d={},e=this.configureTriggers();c.extend(d,a,e),b.View.prototype.delegateEvents.call(this,d)},undelegateEvents:function(){var a=Array.prototype.slice.call(arguments);b.View.prototype.undelegateEvents.apply(this,a),f.unbindEntityEvents(this,this.model,f.getOption(this,"modelEvents")),f.unbindEntityEvents(this,this.collection,f.getOption(this,"collectionEvents"))},onShowCalled:function(){},close:function(){if(!this.isClosed){var a=this.triggerMethod("before:close");a!==!1&&(this.isClosed=!0,this.triggerMethod("close"),this.unbindUIElements(),this.remove())}},bindUIElements:function(){if(this.ui){this._uiBindings||(this._uiBindings=this.ui);var a=c.result(this,"_uiBindings");this.ui={},c.each(c.keys(a),function(b){var c=a[b];this.ui[b]=this.$(c)},this)}},unbindUIElements:function(){this.ui&&this._uiBindings&&(c.each(this.ui,function(a,b){delete this.ui[b]},this),this.ui=this._uiBindings,delete this._uiBindings)}}),f.ItemView=f.View.extend({constructor:function(){f.View.prototype.constructor.apply(this,d(arguments))},serializeData:function(){var a={};return this.model?a=this.model.toJSON():this.collection&&(a={items:this.collection.toJSON()}),a},render:function(){this.isClosed=!1,this.triggerMethod("before:render",this),this.triggerMethod("item:before:render",this);var a=this.serializeData();a=this.mixinTemplateHelpers(a);var b=this.getTemplate(),c=f.Renderer.render(b,a);return this.$el.html(c),this.bindUIElements(),this.triggerMethod("render",this),this.triggerMethod("item:rendered",this),this},close:function(){this.isClosed||(this.triggerMethod("item:before:close"),f.View.prototype.close.apply(this,d(arguments)),this.triggerMethod("item:closed"))}}),f.CollectionView=f.View.extend({itemViewEventPrefix:"itemview",constructor:function(){this._initChildViewStorage(),f.View.prototype.constructor.apply(this,d(arguments)),this._initialEvents(),this.initRenderBuffer()},initRenderBuffer:function(){this.elBuffer=document.createDocumentFragment()},startBuffering:function(){this.initRenderBuffer(),this.isBuffering=!0},endBuffering:function(){this.appendBuffer(this,this.elBuffer),this.initRenderBuffer(),this.isBuffering=!1},_initialEvents:function(){this.collection&&(this.listenTo(this.collection,"add",this.addChildView,this),this.listenTo(this.collection,"remove",this.removeItemView,this),this.listenTo(this.collection,"reset",this.render,this))},addChildView:function(a){this.closeEmptyView();var b=this.getItemView(a),c=this.collection.indexOf(a);this.addItemView(a,b,c)},onShowCalled:function(){this.children.each(function(a){f.triggerMethod.call(a,"show")})},triggerBeforeRender:function(){this.triggerMethod("before:render",this),this.triggerMethod("collection:before:render",this)},triggerRendered:function(){this.triggerMethod("render",this),this.triggerMethod("collection:rendered",this)},render:function(){return this.isClosed=!1,this.triggerBeforeRender(),this._renderChildren(),this.triggerRendered(),this},_renderChildren:function(){this.startBuffering(),this.closeEmptyView(),this.closeChildren(),this.collection&&this.collection.length>0?this.showCollection():this.showEmptyView(),this.endBuffering()},showCollection:function(){var a;this.collection.each(function(b,c){a=this.getItemView(b),this.addItemView(b,a,c)},this)},showEmptyView:function(){var a=this.getEmptyView();if(a&&!this._showingEmptyView){this._showingEmptyView=!0;var c=new b.Model;this.addItemView(c,a,0)}},closeEmptyView:function(){this._showingEmptyView&&(this.closeChildren(),delete this._showingEmptyView)},getEmptyView:function(){return f.getOption(this,"emptyView")},getItemView:function(){var a=f.getOption(this,"itemView");return a||e("An `itemView` must be specified","NoItemViewError"),a},addItemView:function(a,b,d){var e=f.getOption(this,"itemViewOptions");c.isFunction(e)&&(e=e.call(this,a,d));var g=this.buildItemView(a,b,e);return this.addChildViewEventForwarding(g),this.triggerMethod("before:item:added",g),this.children.add(g),this.renderItemView(g,d),this._isShown&&!this.isBuffering&&f.triggerMethod.call(g,"show"),this.triggerMethod("after:item:added",g),g},addChildViewEventForwarding:function(a){var b=f.getOption(this,"itemViewEventPrefix");this.listenTo(a,"all",function(){var e=d(arguments),g=e[0],h=this.getItemEvents();e[0]=b+":"+g,e.splice(1,0,a),"undefined"!=typeof h&&c.isFunction(h[g])&&h[g].apply(this,e),f.triggerMethod.apply(this,e)},this)},getItemEvents:function(){return c.isFunction(this.itemEvents)?this.itemEvents.call(this):this.itemEvents},renderItemView:function(a,b){a.render(),this.appendHtml(this,a,b)},buildItemView:function(a,b,d){var e=c.extend({model:a},d);return new b(e)},removeItemView:function(a){var b=this.children.findByModel(a);this.removeChildView(b),this.checkEmpty()},removeChildView:function(a){a&&(this.stopListening(a),a.close?a.close():a.remove&&a.remove(),this.children.remove(a)),this.triggerMethod("item:removed",a)},checkEmpty:function(){this.collection&&0!==this.collection.length||this.showEmptyView()},appendBuffer:function(a,b){a.$el.append(b)},appendHtml:function(a,b){a.isBuffering?a.elBuffer.appendChild(b.el):a.$el.append(b.el)},_initChildViewStorage:function(){this.children=new b.ChildViewContainer},close:function(){this.isClosed||(this.triggerMethod("collection:before:close"),this.closeChildren(),this.triggerMethod("collection:closed"),f.View.prototype.close.apply(this,d(arguments)))},closeChildren:function(){this.children.each(function(a){this.removeChildView(a)},this),this.checkEmpty()}}),f.CompositeView=f.CollectionView.extend({constructor:function(){f.CollectionView.prototype.constructor.apply(this,d(arguments))},_initialEvents:function(){this.once("render",function(){this.collection&&(this.listenTo(this.collection,"add",this.addChildView,this),this.listenTo(this.collection,"remove",this.removeItemView,this),this.listenTo(this.collection,"reset",this._renderChildren,this))})},getItemView:function(){var a=f.getOption(this,"itemView")||this.constructor;return a||e("An `itemView` must be specified","NoItemViewError"),a},serializeData:function(){var a={};return this.model&&(a=this.model.toJSON()),a},render:function(){this.isRendered=!0,this.isClosed=!1,this.resetItemViewContainer(),this.triggerBeforeRender();var a=this.renderModel();return this.$el.html(a),this.bindUIElements(),this.triggerMethod("composite:model:rendered"),this._renderChildren(),this.triggerMethod("composite:rendered"),this.triggerRendered(),this},_renderChildren:function(){this.isRendered&&(f.CollectionView.prototype._renderChildren.call(this),this.triggerMethod("composite:collection:rendered"))},renderModel:function(){var a={};a=this.serializeData(),a=this.mixinTemplateHelpers(a);var b=this.getTemplate();return f.Renderer.render(b,a)},appendBuffer:function(a,b){var c=this.getItemViewContainer(a);c.append(b)},appendHtml:function(a,b){if(a.isBuffering)a.elBuffer.appendChild(b.el);else{var c=this.getItemViewContainer(a);c.append(b.el)}},getItemViewContainer:function(a){if("$itemViewContainer"in a)return a.$itemViewContainer;var b,d=f.getOption(a,"itemViewContainer");if(d){var g=c.isFunction(d)?d.call(this):d;b=a.$(g),b.length<=0&&e("The specified `itemViewContainer` was not found: "+a.itemViewContainer,"ItemViewContainerMissingError")}else b=a.$el;return a.$itemViewContainer=b,b},resetItemViewContainer:function(){this.$itemViewContainer&&delete this.$itemViewContainer}}),f.Layout=f.ItemView.extend({regionType:f.Region,constructor:function(a){a=a||{},this._firstRender=!0,this._initializeRegions(a),f.ItemView.prototype.constructor.call(this,a)},render:function(){this.isClosed&&this._initializeRegions(),this._firstRender?this._firstRender=!1:this.isClosed||this._reInitializeRegions();var a=Array.prototype.slice.apply(arguments),b=f.ItemView.prototype.render.apply(this,a);return b},close:function(){if(!this.isClosed){this.regionManager.close();var a=Array.prototype.slice.apply(arguments);f.ItemView.prototype.close.apply(this,a)}},addRegion:function(a,b){var c={};return c[a]=b,this._buildRegions(c)[a]},addRegions:function(a){return this.regions=c.extend({},this.regions,a),this._buildRegions(a)},removeRegion:function(a){return delete this.regions[a],this.regionManager.removeRegion(a)},_buildRegions:function(a){var b=this,c={regionType:f.getOption(this,"regionType"),parentEl:function(){return b.$el}};return this.regionManager.addRegions(a,c)},_initializeRegions:function(a){var b;this._initRegionManager(),b=c.isFunction(this.regions)?this.regions(a):this.regions||{},this.addRegions(b)},_reInitializeRegions:function(){this.regionManager.closeRegions(),this.regionManager.each(function(a){a.reset()})},_initRegionManager:function(){this.regionManager=new f.RegionManager,this.listenTo(this.regionManager,"region:add",function(a,b){this[a]=b,this.trigger("region:add",a,b)}),this.listenTo(this.regionManager,"region:remove",function(a,b){delete this[a],this.trigger("region:remove",a,b)})}}),f.AppRouter=b.Router.extend({constructor:function(a){b.Router.prototype.constructor.apply(this,d(arguments)),this.options=a||{};var c=f.getOption(this,"appRoutes"),e=this._getController();this.processAppRoutes(e,c)},appRoute:function(a,b){var c=this._getController();this._addAppRoute(c,a,b)},processAppRoutes:function(a,b){if(b){var d=c.keys(b).reverse();c.each(d,function(c){this._addAppRoute(a,c,b[c])},this)}},_getController:function(){return f.getOption(this,"controller")},_addAppRoute:function(a,b,d){var e=a[d];if(!e)throw new Error("Method '"+d+"' was not found on the controller");this.route(b,d,c.bind(e,a))}}),f.Application=function(a){this._initRegionManager(),this._initCallbacks=new f.Callbacks,this.vent=new b.Wreqr.EventAggregator,this.commands=new b.Wreqr.Commands,this.reqres=new b.Wreqr.RequestResponse,this.submodules={},c.extend(this,a),this.triggerMethod=f.triggerMethod},c.extend(f.Application.prototype,b.Events,{execute:function(){var a=Array.prototype.slice.apply(arguments);this.commands.execute.apply(this.commands,a)},request:function(){var a=Array.prototype.slice.apply(arguments);return this.reqres.request.apply(this.reqres,a)},addInitializer:function(a){this._initCallbacks.add(a)},start:function(a){this.triggerMethod("initialize:before",a),this._initCallbacks.run(a,this),this.triggerMethod("initialize:after",a),this.triggerMethod("start",a)},addRegions:function(a){return this._regionManager.addRegions(a)},closeRegions:function(){this._regionManager.closeRegions()},removeRegion:function(a){this._regionManager.removeRegion(a)},getRegion:function(a){return this._regionManager.get(a)},module:function(){var a=d(arguments);return a.unshift(this),f.Module.create.apply(f.Module,a)},_initRegionManager:function(){this._regionManager=new f.RegionManager,this.listenTo(this._regionManager,"region:add",function(a,b){this[a]=b}),this.listenTo(this._regionManager,"region:remove",function(a){delete this[a]})}}),f.Application.extend=f.extend,f.Module=function(a,b){this.moduleName=a,this.submodules={},this._setupInitializersAndFinalizers(),this.app=b,this.startWithParent=!0,this.triggerMethod=f.triggerMethod},c.extend(f.Module.prototype,b.Events,{addInitializer:function(a){this._initializerCallbacks.add(a)},addFinalizer:function(a){this._finalizerCallbacks.add(a)},start:function(a){this._isInitialized||(c.each(this.submodules,function(b){b.startWithParent&&b.start(a)}),this.triggerMethod("before:start",a),this._initializerCallbacks.run(a,this),this._isInitialized=!0,this.triggerMethod("start",a))},stop:function(){this._isInitialized&&(this._isInitialized=!1,f.triggerMethod.call(this,"before:stop"),c.each(this.submodules,function(a){a.stop()}),this._finalizerCallbacks.run(void 0,this),this._initializerCallbacks.reset(),this._finalizerCallbacks.reset(),f.triggerMethod.call(this,"stop"))},addDefinition:function(a,b){this._runModuleDefinition(a,b)},_runModuleDefinition:function(a,d){if(a){var e=c.flatten([this,this.app,b,f,f.$,c,d]);a.apply(this,e)}},_setupInitializersAndFinalizers:function(){this._initializerCallbacks=new f.Callbacks,this._finalizerCallbacks=new f.Callbacks}}),c.extend(f.Module,{create:function(a,b,e){var f=a,g=d(arguments);g.splice(0,3),b=b.split(".");var h=b.length,i=[];return i[h-1]=e,c.each(b,function(b,c){var d=f;f=this._getModule(d,b,a),this._addModuleDefinition(d,f,i[c],g)},this),f},_getModule:function(a,b,c){var d=a[b];return d||(d=new f.Module(b,c),a[b]=d,a.submodules[b]=d),d},_addModuleDefinition:function(a,b,d,e){var f,g;c.isFunction(d)?(f=d,g=!0):c.isObject(d)?(f=d.define,g=d.startWithParent):g=!0,f&&b.addDefinition(f,e),b.startWithParent=b.startWithParent&&g,b.startWithParent&&!b.startWithParentIsConfigured&&(b.startWithParentIsConfigured=!0,a.addInitializer(function(a){b.startWithParent&&b.start(a)}))}}),f}(this,Backbone,_); //# sourceMappingURL=backbone.marionette.map \ No newline at end of file diff --git a/package.json b/package.json index 219bbc919d..ac8481a77f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "backbone.marionette", "description": "Make your Backbone.js apps dance!", - "version": "1.4.1", + "version": "1.5.0", "homepage": "https://github.com/marionettejs/backbone.marionette", "main": "lib/core/amd/backbone.marionette.js", "keywords": [ diff --git a/reports/coverage.json b/reports/coverage.json index 27e1d16ee5..ad71d204c0 100644 --- a/reports/coverage.json +++ b/reports/coverage.json @@ -1 +1 @@ -{"./src/build/marionette.core.js":{"path":"./src/build/marionette.core.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1},"b":{},"f":{"1":1},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":47}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":36,"column":22}},"2":{"start":{"line":5,"column":2},"end":{"line":5,"column":22}},"3":{"start":{"line":6,"column":2},"end":{"line":6,"column":35}},"4":{"start":{"line":9,"column":2},"end":{"line":9,"column":28}},"5":{"start":{"line":35,"column":2},"end":{"line":35,"column":20}}},"branchMap":{}},"./spec/javascripts/support/marionette.support.js":{"path":"./spec/javascripts/support/marionette.support.js","s":{"1":1},"b":{},"f":{},"fnMap":{},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":33}}},"branchMap":{}},"./src/marionette.helpers.js":{"path":"./src/marionette.helpers.js","s":{"1":1,"2":1,"3":1283,"4":1,"5":3,"6":3,"7":3,"8":1,"9":1,"10":3530,"11":0,"12":3530,"13":3530,"14":178,"15":3352,"16":3530},"b":{"1":[3,1],"2":[0,3530],"3":[3530,3530],"4":[178,3352],"5":[3530,3493,181]},"f":{"1":1283,"2":3,"3":3530},"fnMap":{"1":{"name":"slice","line":6,"loc":{"start":{"line":6,"column":0},"end":{"line":6,"column":21}}},"2":{"name":"throwError","line":10,"loc":{"start":{"line":10,"column":0},"end":{"line":10,"column":35}}},"3":{"name":"(anonymous_3)","line":27,"loc":{"start":{"line":27,"column":23},"end":{"line":27,"column":51}}}},"statementMap":{"1":{"start":{"line":5,"column":0},"end":{"line":5,"column":39}},"2":{"start":{"line":6,"column":0},"end":{"line":8,"column":1}},"3":{"start":{"line":7,"column":2},"end":{"line":7,"column":31}},"4":{"start":{"line":10,"column":0},"end":{"line":14,"column":1}},"5":{"start":{"line":11,"column":2},"end":{"line":11,"column":33}},"6":{"start":{"line":12,"column":2},"end":{"line":12,"column":31}},"7":{"start":{"line":13,"column":2},"end":{"line":13,"column":14}},"8":{"start":{"line":20,"column":0},"end":{"line":20,"column":42}},"9":{"start":{"line":27,"column":0},"end":{"line":38,"column":2}},"10":{"start":{"line":28,"column":2},"end":{"line":28,"column":40}},"11":{"start":{"line":28,"column":31},"end":{"line":28,"column":38}},"12":{"start":{"line":29,"column":2},"end":{"line":29,"column":12}},"13":{"start":{"line":31,"column":2},"end":{"line":35,"column":3}},"14":{"start":{"line":32,"column":4},"end":{"line":32,"column":39}},"15":{"start":{"line":34,"column":4},"end":{"line":34,"column":31}},"16":{"start":{"line":37,"column":2},"end":{"line":37,"column":15}}},"branchMap":{"1":{"line":12,"type":"binary-expr","locations":[{"start":{"line":12,"column":15},"end":{"line":12,"column":19}},{"start":{"line":12,"column":23},"end":{"line":12,"column":30}}]},"2":{"line":28,"type":"if","locations":[{"start":{"line":28,"column":2},"end":{"line":28,"column":2}},{"start":{"line":28,"column":2},"end":{"line":28,"column":2}}]},"3":{"line":28,"type":"binary-expr","locations":[{"start":{"line":28,"column":6},"end":{"line":28,"column":13}},{"start":{"line":28,"column":17},"end":{"line":28,"column":28}}]},"4":{"line":31,"type":"if","locations":[{"start":{"line":31,"column":2},"end":{"line":31,"column":2}},{"start":{"line":31,"column":2},"end":{"line":31,"column":2}}]},"5":{"line":31,"type":"binary-expr","locations":[{"start":{"line":31,"column":6},"end":{"line":31,"column":20}},{"start":{"line":31,"column":25},"end":{"line":31,"column":53}},{"start":{"line":31,"column":59},"end":{"line":31,"column":99}}]}}},"./src/marionette.triggermethod.js":{"path":"./src/marionette.triggermethod.js","s":{"1":1,"2":1,"3":1,"4":7078,"5":1,"6":3323,"7":3323,"8":3323,"9":3322,"10":3323,"11":381,"12":1},"b":{"1":[3322,1],"2":[381,2942]},"f":{"1":1,"2":7078,"3":3323},"fnMap":{"1":{"name":"(anonymous_1)","line":8,"loc":{"start":{"line":8,"column":28},"end":{"line":8,"column":38}}},"2":{"name":"getEventName","line":15,"loc":{"start":{"line":15,"column":2},"end":{"line":15,"column":50}}},"3":{"name":"(anonymous_3)","line":20,"loc":{"start":{"line":20,"column":22},"end":{"line":20,"column":38}}}},"statementMap":{"1":{"start":{"line":8,"column":0},"end":{"line":38,"column":5}},"2":{"start":{"line":11,"column":2},"end":{"line":11,"column":31}},"3":{"start":{"line":15,"column":2},"end":{"line":17,"column":3}},"4":{"start":{"line":16,"column":4},"end":{"line":16,"column":35}},"5":{"start":{"line":20,"column":2},"end":{"line":35,"column":4}},"6":{"start":{"line":22,"column":4},"end":{"line":22,"column":66}},"7":{"start":{"line":23,"column":4},"end":{"line":23,"column":34}},"8":{"start":{"line":26,"column":4},"end":{"line":28,"column":5}},"9":{"start":{"line":27,"column":6},"end":{"line":27,"column":42}},"10":{"start":{"line":31,"column":4},"end":{"line":34,"column":5}},"11":{"start":{"line":33,"column":6},"end":{"line":33,"column":51}},"12":{"start":{"line":37,"column":2},"end":{"line":37,"column":23}}},"branchMap":{"1":{"line":26,"type":"if","locations":[{"start":{"line":26,"column":4},"end":{"line":26,"column":4}},{"start":{"line":26,"column":4},"end":{"line":26,"column":4}}]},"2":{"line":31,"type":"if","locations":[{"start":{"line":31,"column":4},"end":{"line":31,"column":4}},{"start":{"line":31,"column":4},"end":{"line":31,"column":4}}]}}},"./src/marionette.bindEntityEvents.js":{"path":"./src/marionette.bindEntityEvents.js","s":{"1":1,"2":1,"3":25,"4":25,"5":29,"6":29,"7":1,"8":28,"9":1,"10":8,"11":1,"12":33,"13":33,"14":37,"15":37,"16":1,"17":8,"18":1,"19":2147,"20":2073,"21":74,"22":8,"23":74,"24":74,"25":16,"26":58,"27":1,"28":1069,"29":1,"30":1078},"b":{"1":[1,28],"2":[2073,74],"3":[2147,992],"4":[8,66],"5":[16,58]},"f":{"1":1,"2":25,"3":29,"4":8,"5":33,"6":37,"7":8,"8":2147,"9":74,"10":1069,"11":1078},"fnMap":{"1":{"name":"(anonymous_1)","line":17,"loc":{"start":{"line":17,"column":1},"end":{"line":17,"column":21}}},"2":{"name":"bindFromStrings","line":22,"loc":{"start":{"line":22,"column":2},"end":{"line":22,"column":56}}},"3":{"name":"(anonymous_3)","line":25,"loc":{"start":{"line":25,"column":23},"end":{"line":25,"column":44}}},"4":{"name":"bindToFunction","line":37,"loc":{"start":{"line":37,"column":2},"end":{"line":37,"column":54}}},"5":{"name":"unbindFromStrings","line":43,"loc":{"start":{"line":43,"column":2},"end":{"line":43,"column":58}}},"6":{"name":"(anonymous_6)","line":46,"loc":{"start":{"line":46,"column":23},"end":{"line":46,"column":44}}},"7":{"name":"unbindToFunction","line":53,"loc":{"start":{"line":53,"column":2},"end":{"line":53,"column":56}}},"8":{"name":"iterateEvents","line":59,"loc":{"start":{"line":59,"column":2},"end":{"line":59,"column":84}}},"9":{"name":"(anonymous_9)","line":68,"loc":{"start":{"line":68,"column":21},"end":{"line":68,"column":43}}},"10":{"name":"(anonymous_10)","line":82,"loc":{"start":{"line":82,"column":32},"end":{"line":82,"column":66}}},"11":{"name":"(anonymous_11)","line":86,"loc":{"start":{"line":86,"column":34},"end":{"line":86,"column":68}}}},"statementMap":{"1":{"start":{"line":17,"column":0},"end":{"line":90,"column":15}},"2":{"start":{"line":22,"column":2},"end":{"line":34,"column":3}},"3":{"start":{"line":23,"column":4},"end":{"line":23,"column":43}},"4":{"start":{"line":25,"column":4},"end":{"line":33,"column":7}},"5":{"start":{"line":27,"column":6},"end":{"line":27,"column":38}},"6":{"start":{"line":28,"column":6},"end":{"line":30,"column":7}},"7":{"start":{"line":29,"column":8},"end":{"line":29,"column":104}},"8":{"start":{"line":32,"column":6},"end":{"line":32,"column":51}},"9":{"start":{"line":37,"column":2},"end":{"line":39,"column":3}},"10":{"start":{"line":38,"column":6},"end":{"line":38,"column":51}},"11":{"start":{"line":43,"column":2},"end":{"line":50,"column":3}},"12":{"start":{"line":44,"column":4},"end":{"line":44,"column":43}},"13":{"start":{"line":46,"column":4},"end":{"line":49,"column":7}},"14":{"start":{"line":47,"column":6},"end":{"line":47,"column":38}},"15":{"start":{"line":48,"column":6},"end":{"line":48,"column":56}},"16":{"start":{"line":53,"column":2},"end":{"line":55,"column":3}},"17":{"start":{"line":54,"column":6},"end":{"line":54,"column":56}},"18":{"start":{"line":59,"column":2},"end":{"line":79,"column":3}},"19":{"start":{"line":60,"column":4},"end":{"line":60,"column":41}},"20":{"start":{"line":60,"column":32},"end":{"line":60,"column":39}},"21":{"start":{"line":63,"column":4},"end":{"line":65,"column":5}},"22":{"start":{"line":64,"column":6},"end":{"line":64,"column":39}},"23":{"start":{"line":68,"column":4},"end":{"line":78,"column":7}},"24":{"start":{"line":72,"column":6},"end":{"line":76,"column":7}},"25":{"start":{"line":73,"column":8},"end":{"line":73,"column":55}},"26":{"start":{"line":75,"column":8},"end":{"line":75,"column":53}},"27":{"start":{"line":82,"column":2},"end":{"line":84,"column":4}},"28":{"start":{"line":83,"column":4},"end":{"line":83,"column":77}},"29":{"start":{"line":86,"column":2},"end":{"line":88,"column":4}},"30":{"start":{"line":87,"column":4},"end":{"line":87,"column":81}}},"branchMap":{"1":{"line":28,"type":"if","locations":[{"start":{"line":28,"column":6},"end":{"line":28,"column":6}},{"start":{"line":28,"column":6},"end":{"line":28,"column":6}}]},"2":{"line":60,"type":"if","locations":[{"start":{"line":60,"column":4},"end":{"line":60,"column":4}},{"start":{"line":60,"column":4},"end":{"line":60,"column":4}}]},"3":{"line":60,"type":"binary-expr","locations":[{"start":{"line":60,"column":8},"end":{"line":60,"column":15}},{"start":{"line":60,"column":19},"end":{"line":60,"column":28}}]},"4":{"line":63,"type":"if","locations":[{"start":{"line":63,"column":4},"end":{"line":63,"column":4}},{"start":{"line":63,"column":4},"end":{"line":63,"column":4}}]},"5":{"line":72,"type":"if","locations":[{"start":{"line":72,"column":6},"end":{"line":72,"column":6}},{"start":{"line":72,"column":6},"end":{"line":72,"column":6}}]}}},"./src/marionette.controller.js":{"path":"./src/marionette.controller.js","s":{"1":1,"2":178,"3":178,"4":178,"5":7,"6":1,"7":1,"8":12,"9":12,"10":12},"b":{"1":[178,173],"2":[7,171]},"f":{"1":178,"2":12},"fnMap":{"1":{"name":"(anonymous_1)","line":7,"loc":{"start":{"line":7,"column":24},"end":{"line":7,"column":41}}},"2":{"name":"(anonymous_2)","line":23,"loc":{"start":{"line":23,"column":9},"end":{"line":23,"column":19}}}},"statementMap":{"1":{"start":{"line":7,"column":0},"end":{"line":14,"column":2}},"2":{"start":{"line":8,"column":2},"end":{"line":8,"column":48}},"3":{"start":{"line":9,"column":2},"end":{"line":9,"column":31}},"4":{"start":{"line":11,"column":2},"end":{"line":13,"column":3}},"5":{"start":{"line":12,"column":4},"end":{"line":12,"column":34}},"6":{"start":{"line":16,"column":0},"end":{"line":16,"column":49}},"7":{"start":{"line":22,"column":0},"end":{"line":28,"column":3}},"8":{"start":{"line":24,"column":4},"end":{"line":24,"column":25}},"9":{"start":{"line":25,"column":4},"end":{"line":25,"column":32}},"10":{"start":{"line":26,"column":4},"end":{"line":26,"column":18}}},"branchMap":{"1":{"line":9,"type":"binary-expr","locations":[{"start":{"line":9,"column":17},"end":{"line":9,"column":24}},{"start":{"line":9,"column":28},"end":{"line":9,"column":30}}]},"2":{"line":11,"type":"if","locations":[{"start":{"line":11,"column":2},"end":{"line":11,"column":2}},{"start":{"line":11,"column":2},"end":{"line":11,"column":2}}]}}},"./src/marionette.domRefresh.js":{"path":"./src/marionette.domRefresh.js","s":{"1":1,"2":1,"3":28,"4":28,"5":1,"6":390,"7":390,"8":1,"9":418,"10":17,"11":17,"12":1,"13":532,"14":28,"15":532,"16":390},"b":{"1":[17,401],"2":[418,29],"3":[17,0]},"f":{"1":1,"2":28,"3":390,"4":418,"5":532,"6":28,"7":390},"fnMap":{"1":{"name":"(anonymous_1)","line":8,"loc":{"start":{"line":8,"column":32},"end":{"line":8,"column":42}}},"2":{"name":"handleShow","line":11,"loc":{"start":{"line":11,"column":2},"end":{"line":11,"column":27}}},"3":{"name":"handleRender","line":17,"loc":{"start":{"line":17,"column":2},"end":{"line":17,"column":29}}},"4":{"name":"triggerDOMRefresh","line":23,"loc":{"start":{"line":23,"column":2},"end":{"line":23,"column":34}}},"5":{"name":"(anonymous_5)","line":32,"loc":{"start":{"line":32,"column":9},"end":{"line":32,"column":23}}},"6":{"name":"(anonymous_6)","line":33,"loc":{"start":{"line":33,"column":32},"end":{"line":33,"column":42}}},"7":{"name":"(anonymous_7)","line":37,"loc":{"start":{"line":37,"column":34},"end":{"line":37,"column":44}}}},"statementMap":{"1":{"start":{"line":8,"column":0},"end":{"line":41,"column":5}},"2":{"start":{"line":11,"column":2},"end":{"line":14,"column":3}},"3":{"start":{"line":12,"column":4},"end":{"line":12,"column":25}},"4":{"start":{"line":13,"column":4},"end":{"line":13,"column":28}},"5":{"start":{"line":17,"column":2},"end":{"line":20,"column":3}},"6":{"start":{"line":18,"column":4},"end":{"line":18,"column":28}},"7":{"start":{"line":19,"column":4},"end":{"line":19,"column":28}},"8":{"start":{"line":23,"column":2},"end":{"line":29,"column":3}},"9":{"start":{"line":24,"column":4},"end":{"line":28,"column":5}},"10":{"start":{"line":25,"column":6},"end":{"line":27,"column":7}},"11":{"start":{"line":26,"column":8},"end":{"line":26,"column":42}},"12":{"start":{"line":32,"column":2},"end":{"line":40,"column":4}},"13":{"start":{"line":33,"column":4},"end":{"line":35,"column":7}},"14":{"start":{"line":34,"column":6},"end":{"line":34,"column":23}},"15":{"start":{"line":37,"column":4},"end":{"line":39,"column":7}},"16":{"start":{"line":38,"column":6},"end":{"line":38,"column":25}}},"branchMap":{"1":{"line":24,"type":"if","locations":[{"start":{"line":24,"column":4},"end":{"line":24,"column":4}},{"start":{"line":24,"column":4},"end":{"line":24,"column":4}}]},"2":{"line":24,"type":"binary-expr","locations":[{"start":{"line":24,"column":8},"end":{"line":24,"column":21}},{"start":{"line":24,"column":25},"end":{"line":24,"column":41}}]},"3":{"line":25,"type":"if","locations":[{"start":{"line":25,"column":6},"end":{"line":25,"column":6}},{"start":{"line":25,"column":6},"end":{"line":25,"column":6}}]}}},"./src/marionette.view.js":{"path":"./src/marionette.view.js","s":{"1":1,"2":533,"3":533,"4":533,"5":533,"6":533,"7":532,"8":532,"9":173,"10":173,"11":173,"12":173,"13":3,"14":173,"15":554,"16":520,"17":34,"18":43,"19":43,"20":2,"21":2,"22":34,"23":535,"24":514,"25":21,"26":21,"27":21,"28":30,"29":30,"30":30,"31":24,"32":24,"33":24,"34":24,"35":24,"36":24,"37":22,"38":24,"39":22,"40":24,"41":24,"42":21,"43":535,"44":535,"45":534,"46":535,"47":535,"48":0,"49":535,"50":535,"51":535,"52":535,"53":539,"54":539,"55":539,"56":539,"57":129,"58":5,"59":124,"60":124,"61":3,"62":121,"63":121,"64":121,"65":121,"66":171,"67":153,"68":18,"69":15,"70":18,"71":18,"72":18,"73":40,"74":40,"75":121,"76":119,"77":2,"78":2,"79":2,"80":2},"b":{"1":[173,0],"2":[3,170],"3":[520,34],"4":[2,41],"5":[514,21],"6":[4,26],"7":[24,0],"8":[4,20],"9":[4,20],"10":[22,2],"11":[24,22],"12":[22,2],"13":[24,22],"14":[535,535],"15":[0,535],"16":[5,124],"17":[3,121],"18":[153,18],"19":[15,3],"20":[119,2],"21":[121,3]},"f":{"1":533,"2":173,"3":173,"4":554,"5":43,"6":535,"7":30,"8":24,"9":535,"10":535,"11":539,"12":23,"13":129,"14":171,"15":40,"16":121,"17":2},"fnMap":{"1":{"name":"(anonymous_1)","line":7,"loc":{"start":{"line":7,"column":15},"end":{"line":7,"column":32}}},"2":{"name":"(anonymous_2)","line":34,"loc":{"start":{"line":34,"column":15},"end":{"line":34,"column":25}}},"3":{"name":"(anonymous_3)","line":43,"loc":{"start":{"line":43,"column":24},"end":{"line":43,"column":40}}},"4":{"name":"(anonymous_4)","line":55,"loc":{"start":{"line":55,"column":19},"end":{"line":55,"column":34}}},"5":{"name":"(anonymous_5)","line":60,"loc":{"start":{"line":60,"column":25},"end":{"line":60,"column":37}}},"6":{"name":"(anonymous_6)","line":73,"loc":{"start":{"line":73,"column":21},"end":{"line":73,"column":31}}},"7":{"name":"(anonymous_7)","line":83,"loc":{"start":{"line":83,"column":21},"end":{"line":83,"column":41}}},"8":{"name":"(anonymous_8)","line":89,"loc":{"start":{"line":89,"column":27},"end":{"line":89,"column":38}}},"9":{"name":"(anonymous_9)","line":121,"loc":{"start":{"line":121,"column":18},"end":{"line":121,"column":34}}},"10":{"name":"(anonymous_10)","line":128,"loc":{"start":{"line":128,"column":22},"end":{"line":128,"column":38}}},"11":{"name":"(anonymous_11)","line":141,"loc":{"start":{"line":141,"column":20},"end":{"line":141,"column":30}}},"12":{"name":"(anonymous_12)","line":150,"loc":{"start":{"line":150,"column":16},"end":{"line":150,"column":26}}},"13":{"name":"(anonymous_13)","line":156,"loc":{"start":{"line":156,"column":9},"end":{"line":156,"column":19}}},"14":{"name":"(anonymous_14)","line":181,"loc":{"start":{"line":181,"column":18},"end":{"line":181,"column":28}}},"15":{"name":"(anonymous_15)","line":197,"loc":{"start":{"line":197,"column":29},"end":{"line":197,"column":43}}},"16":{"name":"(anonymous_16)","line":204,"loc":{"start":{"line":204,"column":20},"end":{"line":204,"column":30}}},"17":{"name":"(anonymous_17)","line":208,"loc":{"start":{"line":208,"column":20},"end":{"line":208,"column":39}}}},"statementMap":{"1":{"start":{"line":5,"column":0},"end":{"line":216,"column":3}},"2":{"start":{"line":8,"column":4},"end":{"line":8,"column":30}},"3":{"start":{"line":10,"column":4},"end":{"line":10,"column":54}},"4":{"start":{"line":16,"column":4},"end":{"line":16,"column":55}},"5":{"start":{"line":19,"column":4},"end":{"line":19,"column":65}},"6":{"start":{"line":20,"column":4},"end":{"line":20,"column":58}},"7":{"start":{"line":22,"column":4},"end":{"line":22,"column":39}},"8":{"start":{"line":23,"column":4},"end":{"line":23,"column":57}},"9":{"start":{"line":35,"column":4},"end":{"line":35,"column":50}},"10":{"start":{"line":44,"column":4},"end":{"line":44,"column":26}},"11":{"start":{"line":45,"column":4},"end":{"line":45,"column":72}},"12":{"start":{"line":46,"column":4},"end":{"line":48,"column":5}},"13":{"start":{"line":47,"column":6},"end":{"line":47,"column":51}},"14":{"start":{"line":49,"column":4},"end":{"line":49,"column":45}},"15":{"start":{"line":56,"column":4},"end":{"line":58,"column":5}},"16":{"start":{"line":57,"column":6},"end":{"line":57,"column":13}},"17":{"start":{"line":60,"column":4},"end":{"line":66,"column":13}},"18":{"start":{"line":61,"column":6},"end":{"line":61,"column":34}},"19":{"start":{"line":62,"column":6},"end":{"line":65,"column":7}},"20":{"start":{"line":63,"column":8},"end":{"line":63,"column":51}},"21":{"start":{"line":64,"column":8},"end":{"line":64,"column":23}},"22":{"start":{"line":68,"column":4},"end":{"line":68,"column":16}},"23":{"start":{"line":74,"column":4},"end":{"line":74,"column":35}},"24":{"start":{"line":74,"column":26},"end":{"line":74,"column":33}},"25":{"start":{"line":76,"column":4},"end":{"line":76,"column":27}},"26":{"start":{"line":79,"column":4},"end":{"line":79,"column":68}},"27":{"start":{"line":83,"column":4},"end":{"line":114,"column":13}},"28":{"start":{"line":85,"column":6},"end":{"line":85,"column":41}},"29":{"start":{"line":86,"column":6},"end":{"line":86,"column":55}},"30":{"start":{"line":89,"column":6},"end":{"line":112,"column":8}},"31":{"start":{"line":92,"column":8},"end":{"line":101,"column":9}},"32":{"start":{"line":93,"column":10},"end":{"line":93,"column":41}},"33":{"start":{"line":94,"column":10},"end":{"line":94,"column":39}},"34":{"start":{"line":96,"column":10},"end":{"line":96,"column":74}},"35":{"start":{"line":97,"column":10},"end":{"line":97,"column":69}},"36":{"start":{"line":99,"column":10},"end":{"line":99,"column":61}},"37":{"start":{"line":99,"column":42},"end":{"line":99,"column":59}},"38":{"start":{"line":100,"column":10},"end":{"line":100,"column":52}},"39":{"start":{"line":100,"column":36},"end":{"line":100,"column":50}},"40":{"start":{"line":104,"column":8},"end":{"line":108,"column":10}},"41":{"start":{"line":111,"column":8},"end":{"line":111,"column":44}},"42":{"start":{"line":116,"column":4},"end":{"line":116,"column":25}},"43":{"start":{"line":122,"column":4},"end":{"line":122,"column":36}},"44":{"start":{"line":123,"column":4},"end":{"line":123,"column":93}},"45":{"start":{"line":124,"column":4},"end":{"line":124,"column":103}},"46":{"start":{"line":129,"column":4},"end":{"line":129,"column":35}},"47":{"start":{"line":130,"column":4},"end":{"line":130,"column":60}},"48":{"start":{"line":130,"column":31},"end":{"line":130,"column":58}},"49":{"start":{"line":132,"column":4},"end":{"line":132,"column":28}},"50":{"start":{"line":133,"column":4},"end":{"line":133,"column":44}},"51":{"start":{"line":134,"column":4},"end":{"line":134,"column":47}},"52":{"start":{"line":136,"column":4},"end":{"line":136,"column":70}},"53":{"start":{"line":142,"column":4},"end":{"line":142,"column":53}},"54":{"start":{"line":143,"column":4},"end":{"line":143,"column":63}},"55":{"start":{"line":145,"column":4},"end":{"line":145,"column":95}},"56":{"start":{"line":146,"column":4},"end":{"line":146,"column":105}},"57":{"start":{"line":157,"column":4},"end":{"line":157,"column":34}},"58":{"start":{"line":157,"column":25},"end":{"line":157,"column":32}},"59":{"start":{"line":161,"column":4},"end":{"line":161,"column":57}},"60":{"start":{"line":162,"column":4},"end":{"line":164,"column":5}},"61":{"start":{"line":163,"column":6},"end":{"line":163,"column":13}},"62":{"start":{"line":169,"column":4},"end":{"line":169,"column":25}},"63":{"start":{"line":170,"column":4},"end":{"line":170,"column":32}},"64":{"start":{"line":173,"column":4},"end":{"line":173,"column":28}},"65":{"start":{"line":176,"column":4},"end":{"line":176,"column":18}},"66":{"start":{"line":182,"column":4},"end":{"line":182,"column":29}},"67":{"start":{"line":182,"column":20},"end":{"line":182,"column":27}},"68":{"start":{"line":186,"column":4},"end":{"line":188,"column":5}},"69":{"start":{"line":187,"column":6},"end":{"line":187,"column":33}},"70":{"start":{"line":191,"column":4},"end":{"line":191,"column":49}},"71":{"start":{"line":194,"column":4},"end":{"line":194,"column":17}},"72":{"start":{"line":197,"column":4},"end":{"line":200,"column":13}},"73":{"start":{"line":198,"column":6},"end":{"line":198,"column":35}},"74":{"start":{"line":199,"column":6},"end":{"line":199,"column":38}},"75":{"start":{"line":205,"column":4},"end":{"line":205,"column":49}},"76":{"start":{"line":205,"column":40},"end":{"line":205,"column":47}},"77":{"start":{"line":208,"column":4},"end":{"line":210,"column":13}},"78":{"start":{"line":209,"column":6},"end":{"line":209,"column":27}},"79":{"start":{"line":213,"column":4},"end":{"line":213,"column":31}},"80":{"start":{"line":214,"column":4},"end":{"line":214,"column":28}}},"branchMap":{"1":{"line":44,"type":"binary-expr","locations":[{"start":{"line":44,"column":13},"end":{"line":44,"column":19}},{"start":{"line":44,"column":23},"end":{"line":44,"column":25}}]},"2":{"line":46,"type":"if","locations":[{"start":{"line":46,"column":4},"end":{"line":46,"column":4}},{"start":{"line":46,"column":4},"end":{"line":46,"column":4}}]},"3":{"line":56,"type":"if","locations":[{"start":{"line":56,"column":4},"end":{"line":56,"column":4}},{"start":{"line":56,"column":4},"end":{"line":56,"column":4}}]},"4":{"line":62,"type":"if","locations":[{"start":{"line":62,"column":6},"end":{"line":62,"column":6}},{"start":{"line":62,"column":6},"end":{"line":62,"column":6}}]},"5":{"line":74,"type":"if","locations":[{"start":{"line":74,"column":4},"end":{"line":74,"column":4}},{"start":{"line":74,"column":4},"end":{"line":74,"column":4}}]},"6":{"line":86,"type":"cond-expr","locations":[{"start":{"line":86,"column":35},"end":{"line":86,"column":46}},{"start":{"line":86,"column":49},"end":{"line":86,"column":54}}]},"7":{"line":92,"type":"if","locations":[{"start":{"line":92,"column":8},"end":{"line":92,"column":8}},{"start":{"line":92,"column":8},"end":{"line":92,"column":8}}]},"8":{"line":96,"type":"cond-expr","locations":[{"start":{"line":96,"column":43},"end":{"line":96,"column":63}},{"start":{"line":96,"column":66},"end":{"line":96,"column":73}}]},"9":{"line":97,"type":"cond-expr","locations":[{"start":{"line":97,"column":40},"end":{"line":97,"column":61}},{"start":{"line":97,"column":64},"end":{"line":97,"column":68}}]},"10":{"line":99,"type":"if","locations":[{"start":{"line":99,"column":10},"end":{"line":99,"column":10}},{"start":{"line":99,"column":10},"end":{"line":99,"column":10}}]},"11":{"line":99,"type":"binary-expr","locations":[{"start":{"line":99,"column":14},"end":{"line":99,"column":27}},{"start":{"line":99,"column":31},"end":{"line":99,"column":38}}]},"12":{"line":100,"type":"if","locations":[{"start":{"line":100,"column":10},"end":{"line":100,"column":10}},{"start":{"line":100,"column":10},"end":{"line":100,"column":10}}]},"13":{"line":100,"type":"binary-expr","locations":[{"start":{"line":100,"column":14},"end":{"line":100,"column":24}},{"start":{"line":100,"column":28},"end":{"line":100,"column":32}}]},"14":{"line":129,"type":"binary-expr","locations":[{"start":{"line":129,"column":13},"end":{"line":129,"column":19}},{"start":{"line":129,"column":23},"end":{"line":129,"column":34}}]},"15":{"line":130,"type":"if","locations":[{"start":{"line":130,"column":4},"end":{"line":130,"column":4}},{"start":{"line":130,"column":4},"end":{"line":130,"column":4}}]},"16":{"line":157,"type":"if","locations":[{"start":{"line":157,"column":4},"end":{"line":157,"column":4}},{"start":{"line":157,"column":4},"end":{"line":157,"column":4}}]},"17":{"line":162,"type":"if","locations":[{"start":{"line":162,"column":4},"end":{"line":162,"column":4}},{"start":{"line":162,"column":4},"end":{"line":162,"column":4}}]},"18":{"line":182,"type":"if","locations":[{"start":{"line":182,"column":4},"end":{"line":182,"column":4}},{"start":{"line":182,"column":4},"end":{"line":182,"column":4}}]},"19":{"line":186,"type":"if","locations":[{"start":{"line":186,"column":4},"end":{"line":186,"column":4}},{"start":{"line":186,"column":4},"end":{"line":186,"column":4}}]},"20":{"line":205,"type":"if","locations":[{"start":{"line":205,"column":4},"end":{"line":205,"column":4}},{"start":{"line":205,"column":4},"end":{"line":205,"column":4}}]},"21":{"line":205,"type":"binary-expr","locations":[{"start":{"line":205,"column":8},"end":{"line":205,"column":16}},{"start":{"line":205,"column":20},"end":{"line":205,"column":37}}]}}},"./src/marionette.itemview.js":{"path":"./src/marionette.itemview.js","s":{"1":1,"2":341,"3":119,"4":119,"5":72,"6":47,"7":2,"8":119,"9":119,"10":119,"11":119,"12":119,"13":119,"14":119,"15":119,"16":118,"17":118,"18":118,"19":118,"20":118,"21":90,"22":2,"23":88,"24":88,"25":88},"b":{"1":[72,47],"2":[2,45],"3":[2,88]},"f":{"1":341,"2":119,"3":119,"4":90},"fnMap":{"1":{"name":"(anonymous_1)","line":11,"loc":{"start":{"line":11,"column":15},"end":{"line":11,"column":25}}},"2":{"name":"(anonymous_2)","line":21,"loc":{"start":{"line":21,"column":17},"end":{"line":21,"column":27}}},"3":{"name":"(anonymous_3)","line":39,"loc":{"start":{"line":39,"column":10},"end":{"line":39,"column":20}}},"4":{"name":"(anonymous_4)","line":62,"loc":{"start":{"line":62,"column":9},"end":{"line":62,"column":19}}}},"statementMap":{"1":{"start":{"line":7,"column":0},"end":{"line":71,"column":3}},"2":{"start":{"line":12,"column":4},"end":{"line":12,"column":72}},"3":{"start":{"line":22,"column":4},"end":{"line":22,"column":18}},"4":{"start":{"line":24,"column":4},"end":{"line":29,"column":5}},"5":{"start":{"line":25,"column":6},"end":{"line":25,"column":33}},"6":{"start":{"line":27,"column":9},"end":{"line":29,"column":5}},"7":{"start":{"line":28,"column":6},"end":{"line":28,"column":49}},"8":{"start":{"line":31,"column":4},"end":{"line":31,"column":16}},"9":{"start":{"line":40,"column":4},"end":{"line":40,"column":26}},"10":{"start":{"line":42,"column":4},"end":{"line":42,"column":46}},"11":{"start":{"line":43,"column":4},"end":{"line":43,"column":51}},"12":{"start":{"line":45,"column":4},"end":{"line":45,"column":36}},"13":{"start":{"line":46,"column":4},"end":{"line":46,"column":43}},"14":{"start":{"line":48,"column":4},"end":{"line":48,"column":38}},"15":{"start":{"line":49,"column":4},"end":{"line":49,"column":58}},"16":{"start":{"line":51,"column":4},"end":{"line":51,"column":24}},"17":{"start":{"line":52,"column":4},"end":{"line":52,"column":26}},"18":{"start":{"line":54,"column":4},"end":{"line":54,"column":39}},"19":{"start":{"line":55,"column":4},"end":{"line":55,"column":46}},"20":{"start":{"line":57,"column":4},"end":{"line":57,"column":16}},"21":{"start":{"line":63,"column":4},"end":{"line":63,"column":33}},"22":{"start":{"line":63,"column":24},"end":{"line":63,"column":31}},"23":{"start":{"line":65,"column":4},"end":{"line":65,"column":44}},"24":{"start":{"line":67,"column":4},"end":{"line":67,"column":66}},"25":{"start":{"line":69,"column":4},"end":{"line":69,"column":38}}},"branchMap":{"1":{"line":24,"type":"if","locations":[{"start":{"line":24,"column":4},"end":{"line":24,"column":4}},{"start":{"line":24,"column":4},"end":{"line":24,"column":4}}]},"2":{"line":27,"type":"if","locations":[{"start":{"line":27,"column":9},"end":{"line":27,"column":9}},{"start":{"line":27,"column":9},"end":{"line":27,"column":9}}]},"3":{"line":63,"type":"if","locations":[{"start":{"line":63,"column":4},"end":{"line":63,"column":4}},{"start":{"line":63,"column":4},"end":{"line":63,"column":4}}]}}},"./src/marionette.collectionview.js":{"path":"./src/marionette.collectionview.js","s":{"1":1,"2":151,"3":151,"4":151,"5":151,"6":471,"7":161,"8":161,"9":160,"10":159,"11":159,"12":94,"13":86,"14":86,"15":86,"16":17,"17":17,"18":17,"19":17,"20":5,"21":5,"22":158,"23":158,"24":155,"25":155,"26":104,"27":104,"28":104,"29":103,"30":103,"31":161,"32":161,"33":161,"34":161,"35":122,"36":39,"37":160,"38":122,"39":122,"40":195,"41":194,"42":94,"43":94,"44":20,"45":20,"46":20,"47":178,"48":9,"49":9,"50":92,"51":144,"52":144,"53":1,"54":143,"55":233,"56":233,"57":4,"58":233,"59":233,"60":233,"61":233,"62":233,"63":233,"64":4,"65":233,"66":233,"67":233,"68":326,"69":326,"70":326,"71":326,"72":233,"73":233,"74":233,"75":233,"76":9,"77":9,"78":9,"79":66,"80":65,"81":65,"82":64,"83":1,"84":1,"85":65,"86":66,"87":200,"88":55,"89":103,"90":160,"91":137,"92":23,"93":151,"94":24,"95":4,"96":20,"97":20,"98":20,"99":20,"100":191,"101":57,"102":191},"b":{"1":[86,8],"2":[122,39],"3":[161,151],"4":[20,74],"5":[94,37],"6":[9,169],"7":[1,143],"8":[4,229],"9":[4,229],"10":[65,1],"11":[64,1],"12":[1,0],"13":[55,145],"14":[200,182],"15":[137,23],"16":[4,20]},"f":{"1":151,"2":471,"3":161,"4":160,"5":94,"6":17,"7":5,"8":5,"9":158,"10":155,"11":104,"12":161,"13":122,"14":195,"15":94,"16":178,"17":92,"18":144,"19":233,"20":233,"21":326,"22":233,"23":233,"24":9,"25":66,"26":200,"27":103,"28":160,"29":151,"30":24,"31":191,"32":57},"fnMap":{"1":{"name":"(anonymous_1)","line":12,"loc":{"start":{"line":12,"column":15},"end":{"line":12,"column":32}}},"2":{"name":"(anonymous_2)","line":24,"loc":{"start":{"line":24,"column":20},"end":{"line":24,"column":31}}},"3":{"name":"(anonymous_3)","line":28,"loc":{"start":{"line":28,"column":18},"end":{"line":28,"column":29}}},"4":{"name":"(anonymous_4)","line":33,"loc":{"start":{"line":33,"column":16},"end":{"line":33,"column":27}}},"5":{"name":"(anonymous_5)","line":42,"loc":{"start":{"line":42,"column":18},"end":{"line":42,"column":28}}},"6":{"name":"(anonymous_6)","line":51,"loc":{"start":{"line":51,"column":16},"end":{"line":51,"column":51}}},"7":{"name":"(anonymous_7)","line":60,"loc":{"start":{"line":60,"column":16},"end":{"line":60,"column":26}}},"8":{"name":"(anonymous_8)","line":61,"loc":{"start":{"line":61,"column":23},"end":{"line":61,"column":38}}},"9":{"name":"(anonymous_9)","line":68,"loc":{"start":{"line":68,"column":23},"end":{"line":68,"column":33}}},"10":{"name":"(anonymous_10)","line":75,"loc":{"start":{"line":75,"column":19},"end":{"line":75,"column":29}}},"11":{"name":"(anonymous_11)","line":83,"loc":{"start":{"line":83,"column":10},"end":{"line":83,"column":20}}},"12":{"name":"(anonymous_12)","line":94,"loc":{"start":{"line":94,"column":19},"end":{"line":94,"column":29}}},"13":{"name":"(anonymous_13)","line":111,"loc":{"start":{"line":111,"column":18},"end":{"line":111,"column":28}}},"14":{"name":"(anonymous_14)","line":113,"loc":{"start":{"line":113,"column":25},"end":{"line":113,"column":46}}},"15":{"name":"(anonymous_15)","line":122,"loc":{"start":{"line":122,"column":17},"end":{"line":122,"column":27}}},"16":{"name":"(anonymous_16)","line":135,"loc":{"start":{"line":135,"column":18},"end":{"line":135,"column":28}}},"17":{"name":"(anonymous_17)","line":143,"loc":{"start":{"line":143,"column":16},"end":{"line":143,"column":26}}},"18":{"name":"(anonymous_18)","line":150,"loc":{"start":{"line":150,"column":15},"end":{"line":150,"column":29}}},"19":{"name":"(anonymous_19)","line":162,"loc":{"start":{"line":162,"column":15},"end":{"line":162,"column":46}}},"20":{"name":"(anonymous_20)","line":197,"loc":{"start":{"line":197,"column":31},"end":{"line":197,"column":45}}},"21":{"name":"(anonymous_21)","line":202,"loc":{"start":{"line":202,"column":31},"end":{"line":202,"column":41}}},"22":{"name":"(anonymous_22)","line":212,"loc":{"start":{"line":212,"column":18},"end":{"line":212,"column":40}}},"23":{"name":"(anonymous_23)","line":218,"loc":{"start":{"line":218,"column":17},"end":{"line":218,"column":62}}},"24":{"name":"(anonymous_24)","line":224,"loc":{"start":{"line":224,"column":18},"end":{"line":224,"column":32}}},"25":{"name":"(anonymous_25)","line":231,"loc":{"start":{"line":231,"column":19},"end":{"line":231,"column":33}}},"26":{"name":"(anonymous_26)","line":249,"loc":{"start":{"line":249,"column":14},"end":{"line":249,"column":25}}},"27":{"name":"(anonymous_27)","line":258,"loc":{"start":{"line":258,"column":16},"end":{"line":258,"column":49}}},"28":{"name":"(anonymous_28)","line":265,"loc":{"start":{"line":265,"column":14},"end":{"line":265,"column":55}}},"29":{"name":"(anonymous_29)","line":281,"loc":{"start":{"line":281,"column":25},"end":{"line":281,"column":35}}},"30":{"name":"(anonymous_30)","line":287,"loc":{"start":{"line":287,"column":9},"end":{"line":287,"column":19}}},"31":{"name":"(anonymous_31)","line":299,"loc":{"start":{"line":299,"column":17},"end":{"line":299,"column":27}}},"32":{"name":"(anonymous_32)","line":300,"loc":{"start":{"line":300,"column":23},"end":{"line":300,"column":38}}}},"statementMap":{"1":{"start":{"line":6,"column":0},"end":{"line":305,"column":3}},"2":{"start":{"line":13,"column":4},"end":{"line":13,"column":33}},"3":{"start":{"line":15,"column":4},"end":{"line":15,"column":72}},"4":{"start":{"line":17,"column":4},"end":{"line":17,"column":26}},"5":{"start":{"line":18,"column":4},"end":{"line":18,"column":28}},"6":{"start":{"line":25,"column":4},"end":{"line":25,"column":55}},"7":{"start":{"line":29,"column":4},"end":{"line":29,"column":28}},"8":{"start":{"line":30,"column":4},"end":{"line":30,"column":28}},"9":{"start":{"line":34,"column":4},"end":{"line":34,"column":43}},"10":{"start":{"line":35,"column":4},"end":{"line":35,"column":28}},"11":{"start":{"line":36,"column":4},"end":{"line":36,"column":29}},"12":{"start":{"line":43,"column":4},"end":{"line":47,"column":5}},"13":{"start":{"line":44,"column":6},"end":{"line":44,"column":69}},"14":{"start":{"line":45,"column":6},"end":{"line":45,"column":74}},"15":{"start":{"line":46,"column":6},"end":{"line":46,"column":65}},"16":{"start":{"line":52,"column":4},"end":{"line":52,"column":26}},"17":{"start":{"line":53,"column":4},"end":{"line":53,"column":42}},"18":{"start":{"line":54,"column":4},"end":{"line":54,"column":46}},"19":{"start":{"line":55,"column":4},"end":{"line":55,"column":44}},"20":{"start":{"line":61,"column":4},"end":{"line":63,"column":7}},"21":{"start":{"line":62,"column":6},"end":{"line":62,"column":51}},"22":{"start":{"line":69,"column":4},"end":{"line":69,"column":46}},"23":{"start":{"line":70,"column":4},"end":{"line":70,"column":57}},"24":{"start":{"line":76,"column":4},"end":{"line":76,"column":39}},"25":{"start":{"line":77,"column":4},"end":{"line":77,"column":52}},"26":{"start":{"line":84,"column":4},"end":{"line":84,"column":26}},"27":{"start":{"line":85,"column":4},"end":{"line":85,"column":31}},"28":{"start":{"line":86,"column":4},"end":{"line":86,"column":27}},"29":{"start":{"line":87,"column":4},"end":{"line":87,"column":27}},"30":{"start":{"line":88,"column":4},"end":{"line":88,"column":16}},"31":{"start":{"line":95,"column":4},"end":{"line":95,"column":26}},"32":{"start":{"line":97,"column":4},"end":{"line":97,"column":26}},"33":{"start":{"line":98,"column":4},"end":{"line":98,"column":25}},"34":{"start":{"line":100,"column":4},"end":{"line":104,"column":5}},"35":{"start":{"line":101,"column":6},"end":{"line":101,"column":28}},"36":{"start":{"line":103,"column":6},"end":{"line":103,"column":27}},"37":{"start":{"line":106,"column":4},"end":{"line":106,"column":24}},"38":{"start":{"line":112,"column":4},"end":{"line":112,"column":17}},"39":{"start":{"line":113,"column":4},"end":{"line":116,"column":13}},"40":{"start":{"line":114,"column":6},"end":{"line":114,"column":40}},"41":{"start":{"line":115,"column":6},"end":{"line":115,"column":46}},"42":{"start":{"line":123,"column":4},"end":{"line":123,"column":40}},"43":{"start":{"line":125,"column":4},"end":{"line":129,"column":5}},"44":{"start":{"line":126,"column":6},"end":{"line":126,"column":36}},"45":{"start":{"line":127,"column":6},"end":{"line":127,"column":39}},"46":{"start":{"line":128,"column":6},"end":{"line":128,"column":44}},"47":{"start":{"line":136,"column":4},"end":{"line":139,"column":5}},"48":{"start":{"line":137,"column":6},"end":{"line":137,"column":27}},"49":{"start":{"line":138,"column":6},"end":{"line":138,"column":36}},"50":{"start":{"line":144,"column":4},"end":{"line":144,"column":51}},"51":{"start":{"line":151,"column":4},"end":{"line":151,"column":58}},"52":{"start":{"line":153,"column":4},"end":{"line":155,"column":5}},"53":{"start":{"line":154,"column":6},"end":{"line":154,"column":71}},"54":{"start":{"line":157,"column":4},"end":{"line":157,"column":20}},"55":{"start":{"line":164,"column":4},"end":{"line":164,"column":72}},"56":{"start":{"line":165,"column":4},"end":{"line":167,"column":5}},"57":{"start":{"line":166,"column":6},"end":{"line":166,"column":64}},"58":{"start":{"line":170,"column":4},"end":{"line":170,"column":67}},"59":{"start":{"line":173,"column":4},"end":{"line":173,"column":43}},"60":{"start":{"line":176,"column":4},"end":{"line":176,"column":50}},"61":{"start":{"line":180,"column":4},"end":{"line":180,"column":28}},"62":{"start":{"line":183,"column":4},"end":{"line":183,"column":37}},"63":{"start":{"line":187,"column":4},"end":{"line":189,"column":5}},"64":{"start":{"line":188,"column":6},"end":{"line":188,"column":50}},"65":{"start":{"line":192,"column":4},"end":{"line":192,"column":49}},"66":{"start":{"line":198,"column":4},"end":{"line":198,"column":67}},"67":{"start":{"line":202,"column":4},"end":{"line":208,"column":13}},"68":{"start":{"line":203,"column":6},"end":{"line":203,"column":34}},"69":{"start":{"line":204,"column":6},"end":{"line":204,"column":39}},"70":{"start":{"line":205,"column":6},"end":{"line":205,"column":30}},"71":{"start":{"line":207,"column":6},"end":{"line":207,"column":49}},"72":{"start":{"line":213,"column":4},"end":{"line":213,"column":18}},"73":{"start":{"line":214,"column":4},"end":{"line":214,"column":39}},"74":{"start":{"line":219,"column":4},"end":{"line":219,"column":59}},"75":{"start":{"line":220,"column":4},"end":{"line":220,"column":37}},"76":{"start":{"line":225,"column":4},"end":{"line":225,"column":47}},"77":{"start":{"line":226,"column":4},"end":{"line":226,"column":31}},"78":{"start":{"line":227,"column":4},"end":{"line":227,"column":22}},"79":{"start":{"line":235,"column":4},"end":{"line":243,"column":5}},"80":{"start":{"line":236,"column":6},"end":{"line":236,"column":31}},"81":{"start":{"line":239,"column":6},"end":{"line":240,"column":46}},"82":{"start":{"line":239,"column":24},"end":{"line":239,"column":37}},"83":{"start":{"line":240,"column":11},"end":{"line":240,"column":46}},"84":{"start":{"line":240,"column":30},"end":{"line":240,"column":44}},"85":{"start":{"line":242,"column":6},"end":{"line":242,"column":33}},"86":{"start":{"line":245,"column":4},"end":{"line":245,"column":45}},"87":{"start":{"line":252,"column":4},"end":{"line":254,"column":5}},"88":{"start":{"line":253,"column":6},"end":{"line":253,"column":27}},"89":{"start":{"line":259,"column":4},"end":{"line":259,"column":38}},"90":{"start":{"line":266,"column":4},"end":{"line":276,"column":5}},"91":{"start":{"line":270,"column":6},"end":{"line":270,"column":55}},"92":{"start":{"line":275,"column":6},"end":{"line":275,"column":45}},"93":{"start":{"line":282,"column":4},"end":{"line":282,"column":54}},"94":{"start":{"line":288,"column":4},"end":{"line":288,"column":33}},"95":{"start":{"line":288,"column":24},"end":{"line":288,"column":31}},"96":{"start":{"line":290,"column":4},"end":{"line":290,"column":50}},"97":{"start":{"line":291,"column":4},"end":{"line":291,"column":25}},"98":{"start":{"line":292,"column":4},"end":{"line":292,"column":44}},"99":{"start":{"line":294,"column":4},"end":{"line":294,"column":66}},"100":{"start":{"line":300,"column":4},"end":{"line":302,"column":13}},"101":{"start":{"line":301,"column":6},"end":{"line":301,"column":34}},"102":{"start":{"line":303,"column":4},"end":{"line":303,"column":22}}},"branchMap":{"1":{"line":43,"type":"if","locations":[{"start":{"line":43,"column":4},"end":{"line":43,"column":4}},{"start":{"line":43,"column":4},"end":{"line":43,"column":4}}]},"2":{"line":100,"type":"if","locations":[{"start":{"line":100,"column":4},"end":{"line":100,"column":4}},{"start":{"line":100,"column":4},"end":{"line":100,"column":4}}]},"3":{"line":100,"type":"binary-expr","locations":[{"start":{"line":100,"column":8},"end":{"line":100,"column":23}},{"start":{"line":100,"column":27},"end":{"line":100,"column":53}}]},"4":{"line":125,"type":"if","locations":[{"start":{"line":125,"column":4},"end":{"line":125,"column":4}},{"start":{"line":125,"column":4},"end":{"line":125,"column":4}}]},"5":{"line":125,"type":"binary-expr","locations":[{"start":{"line":125,"column":8},"end":{"line":125,"column":17}},{"start":{"line":125,"column":21},"end":{"line":125,"column":44}}]},"6":{"line":136,"type":"if","locations":[{"start":{"line":136,"column":4},"end":{"line":136,"column":4}},{"start":{"line":136,"column":4},"end":{"line":136,"column":4}}]},"7":{"line":153,"type":"if","locations":[{"start":{"line":153,"column":4},"end":{"line":153,"column":4}},{"start":{"line":153,"column":4},"end":{"line":153,"column":4}}]},"8":{"line":165,"type":"if","locations":[{"start":{"line":165,"column":4},"end":{"line":165,"column":4}},{"start":{"line":165,"column":4},"end":{"line":165,"column":4}}]},"9":{"line":187,"type":"if","locations":[{"start":{"line":187,"column":4},"end":{"line":187,"column":4}},{"start":{"line":187,"column":4},"end":{"line":187,"column":4}}]},"10":{"line":235,"type":"if","locations":[{"start":{"line":235,"column":4},"end":{"line":235,"column":4}},{"start":{"line":235,"column":4},"end":{"line":235,"column":4}}]},"11":{"line":239,"type":"if","locations":[{"start":{"line":239,"column":6},"end":{"line":239,"column":6}},{"start":{"line":239,"column":6},"end":{"line":239,"column":6}}]},"12":{"line":240,"type":"if","locations":[{"start":{"line":240,"column":11},"end":{"line":240,"column":11}},{"start":{"line":240,"column":11},"end":{"line":240,"column":11}}]},"13":{"line":252,"type":"if","locations":[{"start":{"line":252,"column":4},"end":{"line":252,"column":4}},{"start":{"line":252,"column":4},"end":{"line":252,"column":4}}]},"14":{"line":252,"type":"binary-expr","locations":[{"start":{"line":252,"column":8},"end":{"line":252,"column":24}},{"start":{"line":252,"column":28},"end":{"line":252,"column":56}}]},"15":{"line":266,"type":"if","locations":[{"start":{"line":266,"column":4},"end":{"line":266,"column":4}},{"start":{"line":266,"column":4},"end":{"line":266,"column":4}}]},"16":{"line":288,"type":"if","locations":[{"start":{"line":288,"column":4},"end":{"line":288,"column":4}},{"start":{"line":288,"column":4},"end":{"line":288,"column":4}}]}}},"./src/marionette.compositeview.js":{"path":"./src/marionette.compositeview.js","s":{"1":1,"2":58,"3":57,"4":47,"5":40,"6":40,"7":40,"8":70,"9":70,"10":0,"11":70,"12":54,"13":54,"14":41,"15":54,"16":54,"17":54,"18":54,"19":54,"20":54,"21":53,"22":53,"23":53,"24":53,"25":52,"26":52,"27":52,"28":57,"29":57,"30":56,"31":54,"32":54,"33":54,"34":54,"35":54,"36":57,"37":56,"38":51,"39":51,"40":0,"41":0,"42":57,"43":4,"44":53,"45":53,"46":53,"47":6,"48":6,"49":6,"50":1,"51":47,"52":52,"53":52,"54":54,"55":4},"b":{"1":[40,7],"2":[70,6],"3":[0,70],"4":[41,13],"5":[57,0],"6":[51,0],"7":[4,53],"8":[6,47],"9":[0,6],"10":[1,5],"11":[4,50]},"f":{"1":58,"2":57,"3":47,"4":70,"5":54,"6":54,"7":57,"8":54,"9":57,"10":51,"11":57,"12":54},"fnMap":{"1":{"name":"(anonymous_1)","line":11,"loc":{"start":{"line":11,"column":15},"end":{"line":11,"column":25}}},"2":{"name":"(anonymous_2)","line":18,"loc":{"start":{"line":18,"column":18},"end":{"line":18,"column":28}}},"3":{"name":"(anonymous_3)","line":22,"loc":{"start":{"line":22,"column":24},"end":{"line":22,"column":36}}},"4":{"name":"(anonymous_4)","line":36,"loc":{"start":{"line":36,"column":15},"end":{"line":36,"column":29}}},"5":{"name":"(anonymous_5)","line":49,"loc":{"start":{"line":49,"column":17},"end":{"line":49,"column":27}}},"6":{"name":"(anonymous_6)","line":62,"loc":{"start":{"line":62,"column":10},"end":{"line":62,"column":20}}},"7":{"name":"(anonymous_7)","line":83,"loc":{"start":{"line":83,"column":19},"end":{"line":83,"column":29}}},"8":{"name":"(anonymous_8)","line":93,"loc":{"start":{"line":93,"column":15},"end":{"line":93,"column":25}}},"9":{"name":"(anonymous_9)","line":104,"loc":{"start":{"line":104,"column":16},"end":{"line":104,"column":48}}},"10":{"name":"(anonymous_10)","line":113,"loc":{"start":{"line":113,"column":14},"end":{"line":113,"column":54}}},"11":{"name":"(anonymous_11)","line":128,"loc":{"start":{"line":128,"column":24},"end":{"line":128,"column":47}}},"12":{"name":"(anonymous_12)","line":152,"loc":{"start":{"line":152,"column":26},"end":{"line":152,"column":36}}}},"statementMap":{"1":{"start":{"line":7,"column":0},"end":{"line":157,"column":3}},"2":{"start":{"line":12,"column":4},"end":{"line":12,"column":82}},"3":{"start":{"line":22,"column":4},"end":{"line":28,"column":7}},"4":{"start":{"line":23,"column":6},"end":{"line":27,"column":7}},"5":{"start":{"line":24,"column":8},"end":{"line":24,"column":71}},"6":{"start":{"line":25,"column":8},"end":{"line":25,"column":76}},"7":{"start":{"line":26,"column":8},"end":{"line":26,"column":76}},"8":{"start":{"line":37,"column":4},"end":{"line":37,"column":78}},"9":{"start":{"line":39,"column":4},"end":{"line":41,"column":5}},"10":{"start":{"line":40,"column":6},"end":{"line":40,"column":71}},"11":{"start":{"line":43,"column":4},"end":{"line":43,"column":20}},"12":{"start":{"line":50,"column":4},"end":{"line":50,"column":18}},"13":{"start":{"line":52,"column":4},"end":{"line":54,"column":5}},"14":{"start":{"line":53,"column":6},"end":{"line":53,"column":33}},"15":{"start":{"line":56,"column":4},"end":{"line":56,"column":16}},"16":{"start":{"line":63,"column":4},"end":{"line":63,"column":27}},"17":{"start":{"line":64,"column":4},"end":{"line":64,"column":26}},"18":{"start":{"line":65,"column":4},"end":{"line":65,"column":34}},"19":{"start":{"line":67,"column":4},"end":{"line":67,"column":31}},"20":{"start":{"line":68,"column":4},"end":{"line":68,"column":34}},"21":{"start":{"line":69,"column":4},"end":{"line":69,"column":24}},"22":{"start":{"line":73,"column":4},"end":{"line":73,"column":26}},"23":{"start":{"line":74,"column":4},"end":{"line":74,"column":51}},"24":{"start":{"line":76,"column":4},"end":{"line":76,"column":27}},"25":{"start":{"line":78,"column":4},"end":{"line":78,"column":45}},"26":{"start":{"line":79,"column":4},"end":{"line":79,"column":27}},"27":{"start":{"line":80,"column":4},"end":{"line":80,"column":16}},"28":{"start":{"line":84,"column":4},"end":{"line":87,"column":5}},"29":{"start":{"line":85,"column":6},"end":{"line":85,"column":69}},"30":{"start":{"line":86,"column":6},"end":{"line":86,"column":58}},"31":{"start":{"line":94,"column":4},"end":{"line":94,"column":18}},"32":{"start":{"line":95,"column":4},"end":{"line":95,"column":32}},"33":{"start":{"line":96,"column":4},"end":{"line":96,"column":43}},"34":{"start":{"line":98,"column":4},"end":{"line":98,"column":38}},"35":{"start":{"line":99,"column":4},"end":{"line":99,"column":54}},"36":{"start":{"line":105,"column":4},"end":{"line":105,"column":62}},"37":{"start":{"line":106,"column":4},"end":{"line":106,"column":30}},"38":{"start":{"line":114,"column":4},"end":{"line":122,"column":5}},"39":{"start":{"line":115,"column":6},"end":{"line":115,"column":54}},"40":{"start":{"line":120,"column":6},"end":{"line":120,"column":64}},"41":{"start":{"line":121,"column":6},"end":{"line":121,"column":37}},"42":{"start":{"line":129,"column":4},"end":{"line":131,"column":5}},"43":{"start":{"line":130,"column":6},"end":{"line":130,"column":46}},"44":{"start":{"line":133,"column":4},"end":{"line":133,"column":18}},"45":{"start":{"line":134,"column":4},"end":{"line":134,"column":85}},"46":{"start":{"line":135,"column":4},"end":{"line":145,"column":5}},"47":{"start":{"line":137,"column":6},"end":{"line":137,"column":95}},"48":{"start":{"line":138,"column":6},"end":{"line":138,"column":44}},"49":{"start":{"line":139,"column":6},"end":{"line":141,"column":7}},"50":{"start":{"line":140,"column":8},"end":{"line":140,"column":139}},"51":{"start":{"line":144,"column":6},"end":{"line":144,"column":36}},"52":{"start":{"line":147,"column":4},"end":{"line":147,"column":49}},"53":{"start":{"line":148,"column":4},"end":{"line":148,"column":21}},"54":{"start":{"line":153,"column":4},"end":{"line":155,"column":5}},"55":{"start":{"line":154,"column":6},"end":{"line":154,"column":37}}},"branchMap":{"1":{"line":23,"type":"if","locations":[{"start":{"line":23,"column":6},"end":{"line":23,"column":6}},{"start":{"line":23,"column":6},"end":{"line":23,"column":6}}]},"2":{"line":37,"type":"binary-expr","locations":[{"start":{"line":37,"column":19},"end":{"line":37,"column":57}},{"start":{"line":37,"column":61},"end":{"line":37,"column":77}}]},"3":{"line":39,"type":"if","locations":[{"start":{"line":39,"column":4},"end":{"line":39,"column":4}},{"start":{"line":39,"column":4},"end":{"line":39,"column":4}}]},"4":{"line":52,"type":"if","locations":[{"start":{"line":52,"column":4},"end":{"line":52,"column":4}},{"start":{"line":52,"column":4},"end":{"line":52,"column":4}}]},"5":{"line":84,"type":"if","locations":[{"start":{"line":84,"column":4},"end":{"line":84,"column":4}},{"start":{"line":84,"column":4},"end":{"line":84,"column":4}}]},"6":{"line":114,"type":"if","locations":[{"start":{"line":114,"column":4},"end":{"line":114,"column":4}},{"start":{"line":114,"column":4},"end":{"line":114,"column":4}}]},"7":{"line":129,"type":"if","locations":[{"start":{"line":129,"column":4},"end":{"line":129,"column":4}},{"start":{"line":129,"column":4},"end":{"line":129,"column":4}}]},"8":{"line":135,"type":"if","locations":[{"start":{"line":135,"column":4},"end":{"line":135,"column":4}},{"start":{"line":135,"column":4},"end":{"line":135,"column":4}}]},"9":{"line":137,"type":"cond-expr","locations":[{"start":{"line":137,"column":55},"end":{"line":137,"column":74}},{"start":{"line":137,"column":77},"end":{"line":137,"column":94}}]},"10":{"line":139,"type":"if","locations":[{"start":{"line":139,"column":6},"end":{"line":139,"column":6}},{"start":{"line":139,"column":6},"end":{"line":139,"column":6}}]},"11":{"line":153,"type":"if","locations":[{"start":{"line":153,"column":4},"end":{"line":153,"column":4}},{"start":{"line":153,"column":4},"end":{"line":153,"column":4}}]}}},"./src/marionette.region.js":{"path":"./src/marionette.region.js","s":{"1":1,"2":131,"3":131,"4":131,"5":1,"6":1,"7":1,"8":130,"9":1,"10":1,"11":1,"12":104,"13":104,"14":104,"15":104,"16":104,"17":0,"18":104,"19":104,"20":22,"21":104,"22":80,"23":104,"24":2,"25":104,"26":40,"27":104,"28":62,"29":104,"30":104,"31":63,"32":34,"33":34,"34":33,"35":34,"36":104,"37":1,"38":80,"39":80,"40":80,"41":80,"42":74,"43":80,"44":80,"45":77,"46":80,"47":80,"48":80,"49":85,"50":75,"51":41,"52":74,"53":140,"54":140,"55":102,"56":38,"57":16,"58":22,"59":22,"60":38,"61":38,"62":3,"63":17,"64":17,"65":1},"b":{"1":[131,23],"2":[1,130],"3":[1,129],"4":[0,104],"5":[104,102,80],"6":[22,82],"7":[80,24],"8":[2,102],"9":[40,64],"10":[104,102],"11":[62,42],"12":[63,41],"13":[33,1],"14":[80,77],"15":[74,6],"16":[77,3],"17":[80,6],"18":[75,10],"19":[85,10],"20":[102,38],"21":[140,39],"22":[16,22],"23":[22,0]},"f":{"1":131,"2":104,"3":34,"4":80,"5":85,"6":41,"7":74,"8":140,"9":3,"10":17},"fnMap":{"1":{"name":"(anonymous_1)","line":7,"loc":{"start":{"line":7,"column":20},"end":{"line":7,"column":37}}},"2":{"name":"(anonymous_2)","line":44,"loc":{"start":{"line":44,"column":15},"end":{"line":44,"column":56}}},"3":{"name":"(anonymous_3)","line":94,"loc":{"start":{"line":94,"column":21},"end":{"line":94,"column":40}}},"4":{"name":"(anonymous_4)","line":118,"loc":{"start":{"line":118,"column":8},"end":{"line":118,"column":22}}},"5":{"name":"(anonymous_5)","line":142,"loc":{"start":{"line":142,"column":12},"end":{"line":142,"column":22}}},"6":{"name":"(anonymous_6)","line":150,"loc":{"start":{"line":150,"column":9},"end":{"line":150,"column":27}}},"7":{"name":"(anonymous_7)","line":156,"loc":{"start":{"line":156,"column":8},"end":{"line":156,"column":22}}},"8":{"name":"(anonymous_8)","line":162,"loc":{"start":{"line":162,"column":9},"end":{"line":162,"column":19}}},"9":{"name":"(anonymous_9)","line":179,"loc":{"start":{"line":179,"column":14},"end":{"line":179,"column":28}}},"10":{"name":"(anonymous_10)","line":187,"loc":{"start":{"line":187,"column":9},"end":{"line":187,"column":19}}}},"statementMap":{"1":{"start":{"line":7,"column":0},"end":{"line":22,"column":2}},"2":{"start":{"line":8,"column":2},"end":{"line":8,"column":31}},"3":{"start":{"line":10,"column":2},"end":{"line":10,"column":45}},"4":{"start":{"line":12,"column":2},"end":{"line":16,"column":3}},"5":{"start":{"line":13,"column":4},"end":{"line":13,"column":67}},"6":{"start":{"line":14,"column":4},"end":{"line":14,"column":27}},"7":{"start":{"line":15,"column":4},"end":{"line":15,"column":14}},"8":{"start":{"line":18,"column":2},"end":{"line":21,"column":3}},"9":{"start":{"line":19,"column":4},"end":{"line":19,"column":54}},"10":{"start":{"line":20,"column":4},"end":{"line":20,"column":38}},"11":{"start":{"line":28,"column":0},"end":{"line":106,"column":3}},"12":{"start":{"line":46,"column":4},"end":{"line":46,"column":60}},"13":{"start":{"line":47,"column":4},"end":{"line":47,"column":77}},"14":{"start":{"line":48,"column":4},"end":{"line":48,"column":81}},"15":{"start":{"line":49,"column":4},"end":{"line":49,"column":60}},"16":{"start":{"line":51,"column":4},"end":{"line":53,"column":5}},"17":{"start":{"line":52,"column":6},"end":{"line":52,"column":122}},"18":{"start":{"line":55,"column":4},"end":{"line":55,"column":29}},"19":{"start":{"line":59,"column":4},"end":{"line":61,"column":5}},"20":{"start":{"line":60,"column":6},"end":{"line":60,"column":30}},"21":{"start":{"line":63,"column":4},"end":{"line":65,"column":5}},"22":{"start":{"line":64,"column":6},"end":{"line":64,"column":39}},"23":{"start":{"line":69,"column":4},"end":{"line":71,"column":5}},"24":{"start":{"line":70,"column":6},"end":{"line":70,"column":32}},"25":{"start":{"line":73,"column":4},"end":{"line":75,"column":5}},"26":{"start":{"line":74,"column":6},"end":{"line":74,"column":37}},"27":{"start":{"line":77,"column":4},"end":{"line":79,"column":5}},"28":{"start":{"line":78,"column":6},"end":{"line":78,"column":43}},"29":{"start":{"line":82,"column":4},"end":{"line":84,"column":7}},"30":{"start":{"line":92,"column":4},"end":{"line":101,"column":5}},"31":{"start":{"line":94,"column":6},"end":{"line":100,"column":8}},"32":{"start":{"line":95,"column":8},"end":{"line":95,"column":45}},"33":{"start":{"line":96,"column":8},"end":{"line":98,"column":9}},"34":{"start":{"line":97,"column":10},"end":{"line":97,"column":32}},"35":{"start":{"line":99,"column":8},"end":{"line":99,"column":39}},"36":{"start":{"line":103,"column":4},"end":{"line":103,"column":18}},"37":{"start":{"line":111,"column":0},"end":{"line":191,"column":3}},"38":{"start":{"line":120,"column":4},"end":{"line":120,"column":20}},"39":{"start":{"line":122,"column":4},"end":{"line":122,"column":64}},"40":{"start":{"line":124,"column":4},"end":{"line":124,"column":52}},"41":{"start":{"line":126,"column":4},"end":{"line":128,"column":5}},"42":{"start":{"line":127,"column":6},"end":{"line":127,"column":19}},"43":{"start":{"line":130,"column":4},"end":{"line":130,"column":18}},"44":{"start":{"line":132,"column":4},"end":{"line":134,"column":5}},"45":{"start":{"line":133,"column":6},"end":{"line":133,"column":22}},"46":{"start":{"line":136,"column":4},"end":{"line":136,"column":28}},"47":{"start":{"line":138,"column":4},"end":{"line":138,"column":54}},"48":{"start":{"line":139,"column":4},"end":{"line":139,"column":48}},"49":{"start":{"line":143,"column":4},"end":{"line":145,"column":5}},"50":{"start":{"line":144,"column":6},"end":{"line":144,"column":37}},"51":{"start":{"line":151,"column":4},"end":{"line":151,"column":34}},"52":{"start":{"line":157,"column":4},"end":{"line":157,"column":37}},"53":{"start":{"line":163,"column":4},"end":{"line":163,"column":32}},"54":{"start":{"line":164,"column":4},"end":{"line":164,"column":42}},"55":{"start":{"line":164,"column":33},"end":{"line":164,"column":40}},"56":{"start":{"line":167,"column":4},"end":{"line":168,"column":44}},"57":{"start":{"line":167,"column":22},"end":{"line":167,"column":35}},"58":{"start":{"line":168,"column":9},"end":{"line":168,"column":44}},"59":{"start":{"line":168,"column":28},"end":{"line":168,"column":42}},"60":{"start":{"line":170,"column":4},"end":{"line":170,"column":49}},"61":{"start":{"line":172,"column":4},"end":{"line":172,"column":28}},"62":{"start":{"line":180,"column":4},"end":{"line":180,"column":28}},"63":{"start":{"line":188,"column":4},"end":{"line":188,"column":17}},"64":{"start":{"line":189,"column":4},"end":{"line":189,"column":20}},"65":{"start":{"line":194,"column":0},"end":{"line":194,"column":45}}},"branchMap":{"1":{"line":8,"type":"binary-expr","locations":[{"start":{"line":8,"column":17},"end":{"line":8,"column":24}},{"start":{"line":8,"column":28},"end":{"line":8,"column":30}}]},"2":{"line":12,"type":"if","locations":[{"start":{"line":12,"column":2},"end":{"line":12,"column":2}},{"start":{"line":12,"column":2},"end":{"line":12,"column":2}}]},"3":{"line":18,"type":"if","locations":[{"start":{"line":18,"column":2},"end":{"line":18,"column":2}},{"start":{"line":18,"column":2},"end":{"line":18,"column":2}}]},"4":{"line":51,"type":"if","locations":[{"start":{"line":51,"column":4},"end":{"line":51,"column":4}},{"start":{"line":51,"column":4},"end":{"line":51,"column":4}}]},"5":{"line":51,"type":"binary-expr","locations":[{"start":{"line":51,"column":8},"end":{"line":51,"column":21}},{"start":{"line":51,"column":25},"end":{"line":51,"column":40}},{"start":{"line":51,"column":44},"end":{"line":51,"column":67}}]},"6":{"line":59,"type":"if","locations":[{"start":{"line":59,"column":4},"end":{"line":59,"column":4}},{"start":{"line":59,"column":4},"end":{"line":59,"column":4}}]},"7":{"line":63,"type":"if","locations":[{"start":{"line":63,"column":4},"end":{"line":63,"column":4}},{"start":{"line":63,"column":4},"end":{"line":63,"column":4}}]},"8":{"line":69,"type":"if","locations":[{"start":{"line":69,"column":4},"end":{"line":69,"column":4}},{"start":{"line":69,"column":4},"end":{"line":69,"column":4}}]},"9":{"line":73,"type":"if","locations":[{"start":{"line":73,"column":4},"end":{"line":73,"column":4}},{"start":{"line":73,"column":4},"end":{"line":73,"column":4}}]},"10":{"line":73,"type":"binary-expr","locations":[{"start":{"line":73,"column":8},"end":{"line":73,"column":21}},{"start":{"line":73,"column":25},"end":{"line":73,"column":46}}]},"11":{"line":77,"type":"if","locations":[{"start":{"line":77,"column":4},"end":{"line":77,"column":4}},{"start":{"line":77,"column":4},"end":{"line":77,"column":4}}]},"12":{"line":92,"type":"if","locations":[{"start":{"line":92,"column":4},"end":{"line":92,"column":4}},{"start":{"line":92,"column":4},"end":{"line":92,"column":4}}]},"13":{"line":96,"type":"if","locations":[{"start":{"line":96,"column":8},"end":{"line":96,"column":8}},{"start":{"line":96,"column":8},"end":{"line":96,"column":8}}]},"14":{"line":122,"type":"binary-expr","locations":[{"start":{"line":122,"column":23},"end":{"line":122,"column":36}},{"start":{"line":122,"column":40},"end":{"line":122,"column":63}}]},"15":{"line":126,"type":"if","locations":[{"start":{"line":126,"column":4},"end":{"line":126,"column":4}},{"start":{"line":126,"column":4},"end":{"line":126,"column":4}}]},"16":{"line":132,"type":"if","locations":[{"start":{"line":132,"column":4},"end":{"line":132,"column":4}},{"start":{"line":132,"column":4},"end":{"line":132,"column":4}}]},"17":{"line":132,"type":"binary-expr","locations":[{"start":{"line":132,"column":8},"end":{"line":132,"column":23}},{"start":{"line":132,"column":27},"end":{"line":132,"column":39}}]},"18":{"line":143,"type":"if","locations":[{"start":{"line":143,"column":4},"end":{"line":143,"column":4}},{"start":{"line":143,"column":4},"end":{"line":143,"column":4}}]},"19":{"line":143,"type":"binary-expr","locations":[{"start":{"line":143,"column":8},"end":{"line":143,"column":17}},{"start":{"line":143,"column":21},"end":{"line":143,"column":42}}]},"20":{"line":164,"type":"if","locations":[{"start":{"line":164,"column":4},"end":{"line":164,"column":4}},{"start":{"line":164,"column":4},"end":{"line":164,"column":4}}]},"21":{"line":164,"type":"binary-expr","locations":[{"start":{"line":164,"column":8},"end":{"line":164,"column":13}},{"start":{"line":164,"column":17},"end":{"line":164,"column":30}}]},"22":{"line":167,"type":"if","locations":[{"start":{"line":167,"column":4},"end":{"line":167,"column":4}},{"start":{"line":167,"column":4},"end":{"line":167,"column":4}}]},"23":{"line":168,"type":"if","locations":[{"start":{"line":168,"column":9},"end":{"line":168,"column":9}},{"start":{"line":168,"column":9},"end":{"line":168,"column":9}}]}}},"./src/marionette.regionManager.js":{"path":"./src/marionette.regionManager.js","s":{"1":1,"2":1,"3":167,"4":167,"5":64,"6":64,"7":82,"8":65,"9":82,"10":78,"11":82,"12":82,"13":64,"14":110,"15":110,"16":110,"17":110,"18":110,"19":102,"20":8,"21":2,"22":6,"23":110,"24":110,"25":110,"26":17,"27":10,"28":10,"29":11,"30":18,"31":15,"32":19,"33":8,"34":8,"35":8,"36":110,"37":110,"38":28,"39":28,"40":28,"41":28,"42":138,"43":1,"44":1,"45":23,"46":13,"47":13,"48":13,"49":1},"b":{"1":[65,17],"2":[78,4],"3":[102,8],"4":[110,88,88],"5":[2,6]},"f":{"1":1,"2":167,"3":64,"4":82,"5":110,"6":17,"7":10,"8":11,"9":18,"10":15,"11":19,"12":8,"13":110,"14":28,"15":138,"16":23,"17":13},"fnMap":{"1":{"name":"(anonymous_1)","line":5,"loc":{"start":{"line":5,"column":28},"end":{"line":5,"column":48}}},"2":{"name":"(anonymous_2)","line":8,"loc":{"start":{"line":8,"column":17},"end":{"line":8,"column":34}}},"3":{"name":"(anonymous_3)","line":16,"loc":{"start":{"line":16,"column":16},"end":{"line":16,"column":53}}},"4":{"name":"(anonymous_4)","line":19,"loc":{"start":{"line":19,"column":32},"end":{"line":19,"column":58}}},"5":{"name":"(anonymous_5)","line":37,"loc":{"start":{"line":37,"column":15},"end":{"line":37,"column":41}}},"6":{"name":"(anonymous_6)","line":58,"loc":{"start":{"line":58,"column":9},"end":{"line":58,"column":23}}},"7":{"name":"(anonymous_7)","line":63,"loc":{"start":{"line":63,"column":18},"end":{"line":63,"column":32}}},"8":{"name":"(anonymous_8)","line":70,"loc":{"start":{"line":70,"column":19},"end":{"line":70,"column":29}}},"9":{"name":"(anonymous_9)","line":71,"loc":{"start":{"line":71,"column":28},"end":{"line":71,"column":50}}},"10":{"name":"(anonymous_10)","line":78,"loc":{"start":{"line":78,"column":18},"end":{"line":78,"column":28}}},"11":{"name":"(anonymous_11)","line":79,"loc":{"start":{"line":79,"column":28},"end":{"line":79,"column":50}}},"12":{"name":"(anonymous_12)","line":86,"loc":{"start":{"line":86,"column":11},"end":{"line":86,"column":21}}},"13":{"name":"(anonymous_13)","line":93,"loc":{"start":{"line":93,"column":12},"end":{"line":93,"column":34}}},"14":{"name":"(anonymous_14)","line":99,"loc":{"start":{"line":99,"column":13},"end":{"line":99,"column":35}}},"15":{"name":"(anonymous_15)","line":107,"loc":{"start":{"line":107,"column":16},"end":{"line":107,"column":26}}},"16":{"name":"(anonymous_16)","line":123,"loc":{"start":{"line":123,"column":18},"end":{"line":123,"column":35}}},"17":{"name":"(anonymous_17)","line":124,"loc":{"start":{"line":124,"column":38},"end":{"line":124,"column":49}}}},"statementMap":{"1":{"start":{"line":5,"column":0},"end":{"line":132,"column":15}},"2":{"start":{"line":7,"column":2},"end":{"line":111,"column":5}},"3":{"start":{"line":9,"column":6},"end":{"line":9,"column":25}},"4":{"start":{"line":10,"column":6},"end":{"line":10,"column":70}},"5":{"start":{"line":17,"column":6},"end":{"line":17,"column":23}},"6":{"start":{"line":19,"column":6},"end":{"line":30,"column":15}},"7":{"start":{"line":20,"column":8},"end":{"line":22,"column":9}},"8":{"start":{"line":21,"column":10},"end":{"line":21,"column":48}},"9":{"start":{"line":24,"column":8},"end":{"line":26,"column":9}},"10":{"start":{"line":25,"column":10},"end":{"line":25,"column":60}},"11":{"start":{"line":28,"column":8},"end":{"line":28,"column":54}},"12":{"start":{"line":29,"column":8},"end":{"line":29,"column":31}},"13":{"start":{"line":32,"column":6},"end":{"line":32,"column":21}},"14":{"start":{"line":38,"column":6},"end":{"line":38,"column":17}},"15":{"start":{"line":40,"column":6},"end":{"line":40,"column":44}},"16":{"start":{"line":41,"column":6},"end":{"line":41,"column":44}},"17":{"start":{"line":42,"column":6},"end":{"line":42,"column":46}},"18":{"start":{"line":44,"column":6},"end":{"line":50,"column":7}},"19":{"start":{"line":45,"column":8},"end":{"line":45,"column":78}},"20":{"start":{"line":46,"column":13},"end":{"line":50,"column":7}},"21":{"start":{"line":47,"column":8},"end":{"line":47,"column":78}},"22":{"start":{"line":49,"column":8},"end":{"line":49,"column":28}},"23":{"start":{"line":52,"column":6},"end":{"line":52,"column":32}},"24":{"start":{"line":53,"column":6},"end":{"line":53,"column":53}},"25":{"start":{"line":54,"column":6},"end":{"line":54,"column":20}},"26":{"start":{"line":59,"column":6},"end":{"line":59,"column":33}},"27":{"start":{"line":64,"column":6},"end":{"line":64,"column":39}},"28":{"start":{"line":65,"column":6},"end":{"line":65,"column":33}},"29":{"start":{"line":71,"column":6},"end":{"line":73,"column":15}},"30":{"start":{"line":72,"column":8},"end":{"line":72,"column":35}},"31":{"start":{"line":79,"column":6},"end":{"line":81,"column":15}},"32":{"start":{"line":80,"column":8},"end":{"line":80,"column":23}},"33":{"start":{"line":87,"column":6},"end":{"line":87,"column":27}},"34":{"start":{"line":88,"column":6},"end":{"line":88,"column":55}},"35":{"start":{"line":89,"column":6},"end":{"line":89,"column":62}},"36":{"start":{"line":94,"column":6},"end":{"line":94,"column":35}},"37":{"start":{"line":95,"column":6},"end":{"line":95,"column":24}},"38":{"start":{"line":100,"column":6},"end":{"line":100,"column":21}},"39":{"start":{"line":101,"column":6},"end":{"line":101,"column":33}},"40":{"start":{"line":102,"column":6},"end":{"line":102,"column":24}},"41":{"start":{"line":103,"column":6},"end":{"line":103,"column":56}},"42":{"start":{"line":108,"column":6},"end":{"line":108,"column":42}},"43":{"start":{"line":118,"column":2},"end":{"line":121,"column":43}},"44":{"start":{"line":123,"column":2},"end":{"line":129,"column":5}},"45":{"start":{"line":124,"column":4},"end":{"line":128,"column":6}},"46":{"start":{"line":125,"column":6},"end":{"line":125,"column":44}},"47":{"start":{"line":126,"column":6},"end":{"line":126,"column":56}},"48":{"start":{"line":127,"column":6},"end":{"line":127,"column":38}},"49":{"start":{"line":131,"column":2},"end":{"line":131,"column":23}}},"branchMap":{"1":{"line":20,"type":"if","locations":[{"start":{"line":20,"column":8},"end":{"line":20,"column":8}},{"start":{"line":20,"column":8},"end":{"line":20,"column":8}}]},"2":{"line":24,"type":"if","locations":[{"start":{"line":24,"column":8},"end":{"line":24,"column":8}},{"start":{"line":24,"column":8},"end":{"line":24,"column":8}}]},"3":{"line":44,"type":"if","locations":[{"start":{"line":44,"column":6},"end":{"line":44,"column":6}},{"start":{"line":44,"column":6},"end":{"line":44,"column":6}}]},"4":{"line":44,"type":"binary-expr","locations":[{"start":{"line":44,"column":10},"end":{"line":44,"column":18}},{"start":{"line":44,"column":23},"end":{"line":44,"column":31}},{"start":{"line":44,"column":35},"end":{"line":44,"column":46}}]},"5":{"line":46,"type":"if","locations":[{"start":{"line":46,"column":13},"end":{"line":46,"column":13}},{"start":{"line":46,"column":13},"end":{"line":46,"column":13}}]}}},"./src/marionette.layout.js":{"path":"./src/marionette.layout.js","s":{"1":1,"2":36,"3":36,"4":36,"5":36,"6":42,"7":2,"8":42,"9":29,"10":13,"11":12,"12":42,"13":42,"14":42,"15":5,"16":0,"17":5,"18":5,"19":5,"20":11,"21":11,"22":11,"23":38,"24":38,"25":4,"26":4,"27":49,"28":49,"29":32,"30":49,"31":38,"32":38,"33":38,"34":2,"35":36,"36":38,"37":12,"38":12,"39":15,"40":38,"41":38,"42":59,"43":59,"44":38,"45":13,"46":13},"b":{"1":[36,20],"2":[2,40],"3":[29,13],"4":[12,1],"5":[0,5],"6":[2,36],"7":[36,13]},"f":{"1":36,"2":42,"3":5,"4":11,"5":38,"6":4,"7":49,"8":32,"9":38,"10":12,"11":15,"12":38,"13":59,"14":13},"fnMap":{"1":{"name":"(anonymous_1)","line":15,"loc":{"start":{"line":15,"column":15},"end":{"line":15,"column":34}}},"2":{"name":"(anonymous_2)","line":28,"loc":{"start":{"line":28,"column":10},"end":{"line":28,"column":20}}},"3":{"name":"(anonymous_3)","line":52,"loc":{"start":{"line":52,"column":9},"end":{"line":52,"column":21}}},"4":{"name":"(anonymous_4)","line":60,"loc":{"start":{"line":60,"column":13},"end":{"line":60,"column":39}}},"5":{"name":"(anonymous_5)","line":67,"loc":{"start":{"line":67,"column":14},"end":{"line":67,"column":31}}},"6":{"name":"(anonymous_6)","line":73,"loc":{"start":{"line":73,"column":16},"end":{"line":73,"column":30}}},"7":{"name":"(anonymous_7)","line":79,"loc":{"start":{"line":79,"column":17},"end":{"line":79,"column":34}}},"8":{"name":"(anonymous_8)","line":84,"loc":{"start":{"line":84,"column":16},"end":{"line":84,"column":26}}},"9":{"name":"(anonymous_9)","line":92,"loc":{"start":{"line":92,"column":22},"end":{"line":92,"column":41}}},"10":{"name":"(anonymous_10)","line":107,"loc":{"start":{"line":107,"column":24},"end":{"line":107,"column":34}}},"11":{"name":"(anonymous_11)","line":109,"loc":{"start":{"line":109,"column":28},"end":{"line":109,"column":44}}},"12":{"name":"(anonymous_12)","line":116,"loc":{"start":{"line":116,"column":22},"end":{"line":116,"column":32}}},"13":{"name":"(anonymous_13)","line":119,"loc":{"start":{"line":119,"column":52},"end":{"line":119,"column":74}}},"14":{"name":"(anonymous_14)","line":124,"loc":{"start":{"line":124,"column":55},"end":{"line":124,"column":77}}}},"statementMap":{"1":{"start":{"line":10,"column":0},"end":{"line":129,"column":3}},"2":{"start":{"line":16,"column":4},"end":{"line":16,"column":28}},"3":{"start":{"line":18,"column":4},"end":{"line":18,"column":29}},"4":{"start":{"line":19,"column":4},"end":{"line":19,"column":37}},"5":{"start":{"line":21,"column":4},"end":{"line":21,"column":66}},"6":{"start":{"line":30,"column":4},"end":{"line":34,"column":5}},"7":{"start":{"line":33,"column":6},"end":{"line":33,"column":32}},"8":{"start":{"line":35,"column":4},"end":{"line":43,"column":5}},"9":{"start":{"line":38,"column":6},"end":{"line":38,"column":32}},"10":{"start":{"line":39,"column":11},"end":{"line":43,"column":5}},"11":{"start":{"line":42,"column":6},"end":{"line":42,"column":34}},"12":{"start":{"line":45,"column":4},"end":{"line":45,"column":54}},"13":{"start":{"line":46,"column":4},"end":{"line":46,"column":72}},"14":{"start":{"line":48,"column":4},"end":{"line":48,"column":18}},"15":{"start":{"line":53,"column":4},"end":{"line":53,"column":33}},"16":{"start":{"line":53,"column":24},"end":{"line":53,"column":31}},"17":{"start":{"line":54,"column":4},"end":{"line":54,"column":31}},"18":{"start":{"line":55,"column":4},"end":{"line":55,"column":54}},"19":{"start":{"line":56,"column":4},"end":{"line":56,"column":58}},"20":{"start":{"line":61,"column":4},"end":{"line":61,"column":21}},"21":{"start":{"line":62,"column":4},"end":{"line":62,"column":31}},"22":{"start":{"line":63,"column":4},"end":{"line":63,"column":45}},"23":{"start":{"line":68,"column":4},"end":{"line":68,"column":55}},"24":{"start":{"line":69,"column":4},"end":{"line":69,"column":39}},"25":{"start":{"line":74,"column":4},"end":{"line":74,"column":30}},"26":{"start":{"line":75,"column":4},"end":{"line":75,"column":49}},"27":{"start":{"line":80,"column":4},"end":{"line":80,"column":20}},"28":{"start":{"line":82,"column":4},"end":{"line":85,"column":6}},"29":{"start":{"line":84,"column":28},"end":{"line":84,"column":44}},"30":{"start":{"line":87,"column":4},"end":{"line":87,"column":60}},"31":{"start":{"line":93,"column":4},"end":{"line":93,"column":16}},"32":{"start":{"line":94,"column":4},"end":{"line":94,"column":30}},"33":{"start":{"line":96,"column":4},"end":{"line":100,"column":5}},"34":{"start":{"line":97,"column":6},"end":{"line":97,"column":38}},"35":{"start":{"line":99,"column":6},"end":{"line":99,"column":35}},"36":{"start":{"line":102,"column":4},"end":{"line":102,"column":29}},"37":{"start":{"line":108,"column":4},"end":{"line":108,"column":38}},"38":{"start":{"line":109,"column":4},"end":{"line":111,"column":7}},"39":{"start":{"line":110,"column":6},"end":{"line":110,"column":21}},"40":{"start":{"line":117,"column":4},"end":{"line":117,"column":56}},"41":{"start":{"line":119,"column":4},"end":{"line":122,"column":7}},"42":{"start":{"line":120,"column":6},"end":{"line":120,"column":26}},"43":{"start":{"line":121,"column":6},"end":{"line":121,"column":47}},"44":{"start":{"line":124,"column":4},"end":{"line":127,"column":7}},"45":{"start":{"line":125,"column":6},"end":{"line":125,"column":24}},"46":{"start":{"line":126,"column":6},"end":{"line":126,"column":50}}},"branchMap":{"1":{"line":16,"type":"binary-expr","locations":[{"start":{"line":16,"column":14},"end":{"line":16,"column":21}},{"start":{"line":16,"column":25},"end":{"line":16,"column":27}}]},"2":{"line":30,"type":"if","locations":[{"start":{"line":30,"column":4},"end":{"line":30,"column":4}},{"start":{"line":30,"column":4},"end":{"line":30,"column":4}}]},"3":{"line":35,"type":"if","locations":[{"start":{"line":35,"column":4},"end":{"line":35,"column":4}},{"start":{"line":35,"column":4},"end":{"line":35,"column":4}}]},"4":{"line":39,"type":"if","locations":[{"start":{"line":39,"column":11},"end":{"line":39,"column":11}},{"start":{"line":39,"column":11},"end":{"line":39,"column":11}}]},"5":{"line":53,"type":"if","locations":[{"start":{"line":53,"column":4},"end":{"line":53,"column":4}},{"start":{"line":53,"column":4},"end":{"line":53,"column":4}}]},"6":{"line":96,"type":"if","locations":[{"start":{"line":96,"column":4},"end":{"line":96,"column":4}},{"start":{"line":96,"column":4},"end":{"line":96,"column":4}}]},"7":{"line":99,"type":"binary-expr","locations":[{"start":{"line":99,"column":16},"end":{"line":99,"column":28}},{"start":{"line":99,"column":32},"end":{"line":99,"column":34}}]}}},"./src/marionette.application.js":{"path":"./src/marionette.application.js","s":{"1":1,"2":101,"3":101,"4":101,"5":101,"6":101,"7":101,"8":101,"9":101,"10":1,"11":0,"12":0,"13":0,"14":0,"15":75,"16":36,"17":36,"18":36,"19":36,"20":10,"21":1,"22":2,"23":1,"24":140,"25":140,"26":140,"27":101,"28":101,"29":15,"30":101,"31":2,"32":1},"b":{},"f":{"1":101,"2":0,"3":0,"4":75,"5":36,"6":10,"7":1,"8":2,"9":1,"10":140,"11":101,"12":15,"13":2},"fnMap":{"1":{"name":"(anonymous_1)","line":7,"loc":{"start":{"line":7,"column":25},"end":{"line":7,"column":42}}},"2":{"name":"(anonymous_2)","line":22,"loc":{"start":{"line":22,"column":11},"end":{"line":22,"column":21}}},"3":{"name":"(anonymous_3)","line":28,"loc":{"start":{"line":28,"column":11},"end":{"line":28,"column":21}}},"4":{"name":"(anonymous_4)","line":36,"loc":{"start":{"line":36,"column":18},"end":{"line":36,"column":39}}},"5":{"name":"(anonymous_5)","line":43,"loc":{"start":{"line":43,"column":9},"end":{"line":43,"column":26}}},"6":{"name":"(anonymous_6)","line":55,"loc":{"start":{"line":55,"column":14},"end":{"line":55,"column":31}}},"7":{"name":"(anonymous_7)","line":60,"loc":{"start":{"line":60,"column":16},"end":{"line":60,"column":26}}},"8":{"name":"(anonymous_8)","line":67,"loc":{"start":{"line":67,"column":16},"end":{"line":67,"column":33}}},"9":{"name":"(anonymous_9)","line":74,"loc":{"start":{"line":74,"column":13},"end":{"line":74,"column":30}}},"10":{"name":"(anonymous_10)","line":79,"loc":{"start":{"line":79,"column":10},"end":{"line":79,"column":49}}},"11":{"name":"(anonymous_11)","line":90,"loc":{"start":{"line":90,"column":22},"end":{"line":90,"column":32}}},"12":{"name":"(anonymous_12)","line":93,"loc":{"start":{"line":93,"column":53},"end":{"line":93,"column":75}}},"13":{"name":"(anonymous_13)","line":97,"loc":{"start":{"line":97,"column":56},"end":{"line":97,"column":78}}}},"statementMap":{"1":{"start":{"line":7,"column":0},"end":{"line":18,"column":2}},"2":{"start":{"line":8,"column":2},"end":{"line":8,"column":28}},"3":{"start":{"line":9,"column":2},"end":{"line":9,"column":51}},"4":{"start":{"line":10,"column":2},"end":{"line":10,"column":51}},"5":{"start":{"line":11,"column":2},"end":{"line":11,"column":48}},"6":{"start":{"line":12,"column":2},"end":{"line":12,"column":53}},"7":{"start":{"line":13,"column":2},"end":{"line":13,"column":23}},"8":{"start":{"line":15,"column":2},"end":{"line":15,"column":26}},"9":{"start":{"line":17,"column":2},"end":{"line":17,"column":48}},"10":{"start":{"line":20,"column":0},"end":{"line":101,"column":3}},"11":{"start":{"line":23,"column":4},"end":{"line":23,"column":54}},"12":{"start":{"line":24,"column":4},"end":{"line":24,"column":53}},"13":{"start":{"line":29,"column":4},"end":{"line":29,"column":54}},"14":{"start":{"line":30,"column":4},"end":{"line":30,"column":56}},"15":{"start":{"line":37,"column":4},"end":{"line":37,"column":41}},"16":{"start":{"line":44,"column":4},"end":{"line":44,"column":53}},"17":{"start":{"line":45,"column":4},"end":{"line":45,"column":43}},"18":{"start":{"line":46,"column":4},"end":{"line":46,"column":52}},"19":{"start":{"line":48,"column":4},"end":{"line":48,"column":41}},"20":{"start":{"line":56,"column":4},"end":{"line":56,"column":51}},"21":{"start":{"line":61,"column":4},"end":{"line":61,"column":39}},"22":{"start":{"line":68,"column":4},"end":{"line":68,"column":45}},"23":{"start":{"line":75,"column":4},"end":{"line":75,"column":43}},"24":{"start":{"line":82,"column":4},"end":{"line":82,"column":32}},"25":{"start":{"line":83,"column":4},"end":{"line":83,"column":23}},"26":{"start":{"line":86,"column":4},"end":{"line":86,"column":67}},"27":{"start":{"line":91,"column":4},"end":{"line":91,"column":57}},"28":{"start":{"line":93,"column":4},"end":{"line":95,"column":7}},"29":{"start":{"line":94,"column":6},"end":{"line":94,"column":26}},"30":{"start":{"line":97,"column":4},"end":{"line":99,"column":7}},"31":{"start":{"line":98,"column":6},"end":{"line":98,"column":24}},"32":{"start":{"line":104,"column":0},"end":{"line":104,"column":50}}},"branchMap":{}},"./src/marionette.approuter.js":{"path":"./src/marionette.approuter.js","s":{"1":1,"2":13,"3":13,"4":13,"5":13,"6":13,"7":1,"8":1,"9":13,"10":2,"11":11,"12":11,"13":15,"14":14,"15":16,"16":16,"17":1,"18":15},"b":{"1":[13,3],"2":[2,11],"3":[1,15]},"f":{"1":13,"2":1,"3":13,"4":15,"5":14,"6":16},"fnMap":{"1":{"name":"(anonymous_1)","line":21,"loc":{"start":{"line":21,"column":15},"end":{"line":21,"column":32}}},"2":{"name":"(anonymous_2)","line":33,"loc":{"start":{"line":33,"column":12},"end":{"line":33,"column":40}}},"3":{"name":"(anonymous_3)","line":41,"loc":{"start":{"line":41,"column":20},"end":{"line":41,"column":52}}},"4":{"name":"(anonymous_4)","line":46,"loc":{"start":{"line":46,"column":23},"end":{"line":46,"column":39}}},"5":{"name":"(anonymous_5)","line":51,"loc":{"start":{"line":51,"column":18},"end":{"line":51,"column":28}}},"6":{"name":"(anonymous_6)","line":55,"loc":{"start":{"line":55,"column":16},"end":{"line":55,"column":55}}}},"statementMap":{"1":{"start":{"line":19,"column":0},"end":{"line":64,"column":3}},"2":{"start":{"line":22,"column":4},"end":{"line":22,"column":72}},"3":{"start":{"line":24,"column":4},"end":{"line":24,"column":33}},"4":{"start":{"line":26,"column":4},"end":{"line":26,"column":60}},"5":{"start":{"line":27,"column":4},"end":{"line":27,"column":43}},"6":{"start":{"line":28,"column":4},"end":{"line":28,"column":49}},"7":{"start":{"line":34,"column":4},"end":{"line":34,"column":43}},"8":{"start":{"line":35,"column":4},"end":{"line":35,"column":53}},"9":{"start":{"line":42,"column":4},"end":{"line":42,"column":30}},"10":{"start":{"line":42,"column":21},"end":{"line":42,"column":28}},"11":{"start":{"line":44,"column":4},"end":{"line":44,"column":49}},"12":{"start":{"line":46,"column":4},"end":{"line":48,"column":13}},"13":{"start":{"line":47,"column":6},"end":{"line":47,"column":61}},"14":{"start":{"line":52,"column":4},"end":{"line":52,"column":52}},"15":{"start":{"line":56,"column":4},"end":{"line":56,"column":40}},"16":{"start":{"line":58,"column":4},"end":{"line":60,"column":5}},"17":{"start":{"line":59,"column":6},"end":{"line":59,"column":85}},"18":{"start":{"line":62,"column":4},"end":{"line":62,"column":62}}},"branchMap":{"1":{"line":24,"type":"binary-expr","locations":[{"start":{"line":24,"column":19},"end":{"line":24,"column":26}},{"start":{"line":24,"column":30},"end":{"line":24,"column":32}}]},"2":{"line":42,"type":"if","locations":[{"start":{"line":42,"column":4},"end":{"line":42,"column":4}},{"start":{"line":42,"column":4},"end":{"line":42,"column":4}}]},"3":{"line":58,"type":"if","locations":[{"start":{"line":58,"column":4},"end":{"line":58,"column":4}},{"start":{"line":58,"column":4},"end":{"line":58,"column":4}}]}}},"./src/marionette.module.js":{"path":"./src/marionette.module.js","s":{"1":1,"2":132,"3":132,"4":132,"5":132,"6":132,"7":132,"8":1,"9":96,"10":14,"11":125,"12":28,"13":97,"14":33,"15":29,"16":97,"17":97,"18":97,"19":97,"20":16,"21":2,"22":14,"23":14,"24":14,"25":12,"26":14,"27":14,"28":14,"29":14,"30":81,"31":81,"32":0,"33":81,"34":81,"35":132,"36":132,"37":1,"38":140,"39":140,"40":140,"41":140,"42":140,"43":140,"44":140,"45":140,"46":193,"47":193,"48":193,"49":140,"50":193,"51":193,"52":132,"53":132,"54":132,"55":193,"56":193,"57":193,"58":193,"59":76,"60":76,"61":117,"62":6,"63":6,"64":111,"65":193,"66":81,"67":193,"68":193,"69":118,"70":118,"71":47,"72":45},"b":{"1":[28,97],"2":[29,4],"3":[2,14],"4":[0,81],"5":[132,61],"6":[76,117],"7":[6,111],"8":[81,112],"9":[193,175],"10":[118,75],"11":[193,169],"12":[45,2]},"f":{"1":132,"2":96,"3":14,"4":125,"5":33,"6":16,"7":12,"8":81,"9":81,"10":132,"11":140,"12":193,"13":193,"14":193,"15":47},"fnMap":{"1":{"name":"(anonymous_1)","line":6,"loc":{"start":{"line":6,"column":20},"end":{"line":6,"column":45}}},"2":{"name":"(anonymous_2)","line":27,"loc":{"start":{"line":27,"column":18},"end":{"line":27,"column":36}}},"3":{"name":"(anonymous_3)","line":34,"loc":{"start":{"line":34,"column":16},"end":{"line":34,"column":34}}},"4":{"name":"(anonymous_4)","line":39,"loc":{"start":{"line":39,"column":9},"end":{"line":39,"column":26}}},"5":{"name":"(anonymous_5)","line":44,"loc":{"start":{"line":44,"column":28},"end":{"line":44,"column":41}}},"6":{"name":"(anonymous_6)","line":62,"loc":{"start":{"line":62,"column":8},"end":{"line":62,"column":18}}},"7":{"name":"(anonymous_7)","line":71,"loc":{"start":{"line":71,"column":28},"end":{"line":71,"column":41}}},"8":{"name":"(anonymous_8)","line":85,"loc":{"start":{"line":85,"column":17},"end":{"line":85,"column":55}}},"9":{"name":"(anonymous_9)","line":91,"loc":{"start":{"line":91,"column":24},"end":{"line":91,"column":56}}},"10":{"name":"(anonymous_10)","line":110,"loc":{"start":{"line":110,"column":35},"end":{"line":110,"column":45}}},"11":{"name":"(anonymous_11)","line":120,"loc":{"start":{"line":120,"column":10},"end":{"line":120,"column":54}}},"12":{"name":"(anonymous_12)","line":137,"loc":{"start":{"line":137,"column":24},"end":{"line":137,"column":47}}},"13":{"name":"(anonymous_13)","line":147,"loc":{"start":{"line":147,"column":14},"end":{"line":147,"column":64}}},"14":{"name":"(anonymous_14)","line":162,"loc":{"start":{"line":162,"column":24},"end":{"line":162,"column":65}}},"15":{"name":"(anonymous_15)","line":197,"loc":{"start":{"line":197,"column":34},"end":{"line":197,"column":51}}}},"statementMap":{"1":{"start":{"line":6,"column":0},"end":{"line":19,"column":2}},"2":{"start":{"line":7,"column":2},"end":{"line":7,"column":31}},"3":{"start":{"line":10,"column":2},"end":{"line":10,"column":23}},"4":{"start":{"line":12,"column":2},"end":{"line":12,"column":41}},"5":{"start":{"line":15,"column":2},"end":{"line":15,"column":17}},"6":{"start":{"line":16,"column":2},"end":{"line":16,"column":30}},"7":{"start":{"line":18,"column":2},"end":{"line":18,"column":48}},"8":{"start":{"line":23,"column":0},"end":{"line":114,"column":3}},"9":{"start":{"line":28,"column":4},"end":{"line":28,"column":45}},"10":{"start":{"line":35,"column":4},"end":{"line":35,"column":43}},"11":{"start":{"line":41,"column":4},"end":{"line":41,"column":39}},"12":{"start":{"line":41,"column":30},"end":{"line":41,"column":37}},"13":{"start":{"line":44,"column":4},"end":{"line":49,"column":7}},"14":{"start":{"line":46,"column":6},"end":{"line":48,"column":7}},"15":{"start":{"line":47,"column":8},"end":{"line":47,"column":27}},"16":{"start":{"line":52,"column":4},"end":{"line":52,"column":48}},"17":{"start":{"line":54,"column":4},"end":{"line":54,"column":50}},"18":{"start":{"line":55,"column":4},"end":{"line":55,"column":31}},"19":{"start":{"line":57,"column":4},"end":{"line":57,"column":41}},"20":{"start":{"line":64,"column":4},"end":{"line":64,"column":40}},"21":{"start":{"line":64,"column":31},"end":{"line":64,"column":38}},"22":{"start":{"line":65,"column":4},"end":{"line":65,"column":32}},"23":{"start":{"line":67,"column":4},"end":{"line":67,"column":55}},"24":{"start":{"line":71,"column":4},"end":{"line":71,"column":58}},"25":{"start":{"line":71,"column":43},"end":{"line":71,"column":54}},"26":{"start":{"line":74,"column":4},"end":{"line":74,"column":49}},"27":{"start":{"line":77,"column":4},"end":{"line":77,"column":39}},"28":{"start":{"line":78,"column":4},"end":{"line":78,"column":37}},"29":{"start":{"line":80,"column":4},"end":{"line":80,"column":48}},"30":{"start":{"line":86,"column":4},"end":{"line":86,"column":60}},"31":{"start":{"line":92,"column":4},"end":{"line":92,"column":31}},"32":{"start":{"line":92,"column":22},"end":{"line":92,"column":29}},"33":{"start":{"line":95,"column":4},"end":{"line":102,"column":7}},"34":{"start":{"line":104,"column":4},"end":{"line":104,"column":33}},"35":{"start":{"line":111,"column":4},"end":{"line":111,"column":60}},"36":{"start":{"line":112,"column":4},"end":{"line":112,"column":58}},"37":{"start":{"line":117,"column":0},"end":{"line":206,"column":3}},"38":{"start":{"line":121,"column":4},"end":{"line":121,"column":21}},"39":{"start":{"line":125,"column":4},"end":{"line":125,"column":38}},"40":{"start":{"line":126,"column":4},"end":{"line":126,"column":28}},"41":{"start":{"line":129,"column":4},"end":{"line":129,"column":41}},"42":{"start":{"line":130,"column":4},"end":{"line":130,"column":36}},"43":{"start":{"line":133,"column":4},"end":{"line":133,"column":31}},"44":{"start":{"line":134,"column":4},"end":{"line":134,"column":51}},"45":{"start":{"line":137,"column":4},"end":{"line":141,"column":13}},"46":{"start":{"line":138,"column":6},"end":{"line":138,"column":32}},"47":{"start":{"line":139,"column":6},"end":{"line":139,"column":62}},"48":{"start":{"line":140,"column":6},"end":{"line":140,"column":88}},"49":{"start":{"line":144,"column":4},"end":{"line":144,"column":18}},"50":{"start":{"line":149,"column":4},"end":{"line":149,"column":42}},"51":{"start":{"line":151,"column":4},"end":{"line":157,"column":5}},"52":{"start":{"line":153,"column":6},"end":{"line":153,"column":54}},"53":{"start":{"line":154,"column":6},"end":{"line":154,"column":40}},"54":{"start":{"line":156,"column":6},"end":{"line":156,"column":51}},"55":{"start":{"line":159,"column":4},"end":{"line":159,"column":18}},"56":{"start":{"line":163,"column":4},"end":{"line":163,"column":11}},"57":{"start":{"line":164,"column":4},"end":{"line":164,"column":24}},"58":{"start":{"line":166,"column":4},"end":{"line":179,"column":5}},"59":{"start":{"line":168,"column":6},"end":{"line":168,"column":15}},"60":{"start":{"line":169,"column":6},"end":{"line":169,"column":29}},"61":{"start":{"line":171,"column":11},"end":{"line":179,"column":5}},"62":{"start":{"line":173,"column":6},"end":{"line":173,"column":22}},"63":{"start":{"line":174,"column":6},"end":{"line":174,"column":44}},"64":{"start":{"line":178,"column":6},"end":{"line":178,"column":29}},"65":{"start":{"line":182,"column":4},"end":{"line":184,"column":5}},"66":{"start":{"line":183,"column":6},"end":{"line":183,"column":37}},"67":{"start":{"line":188,"column":4},"end":{"line":188,"column":71}},"68":{"start":{"line":191,"column":4},"end":{"line":203,"column":5}},"69":{"start":{"line":194,"column":6},"end":{"line":194,"column":48}},"70":{"start":{"line":197,"column":6},"end":{"line":201,"column":9}},"71":{"start":{"line":198,"column":8},"end":{"line":200,"column":9}},"72":{"start":{"line":199,"column":10},"end":{"line":199,"column":32}}},"branchMap":{"1":{"line":41,"type":"if","locations":[{"start":{"line":41,"column":4},"end":{"line":41,"column":4}},{"start":{"line":41,"column":4},"end":{"line":41,"column":4}}]},"2":{"line":46,"type":"if","locations":[{"start":{"line":46,"column":6},"end":{"line":46,"column":6}},{"start":{"line":46,"column":6},"end":{"line":46,"column":6}}]},"3":{"line":64,"type":"if","locations":[{"start":{"line":64,"column":4},"end":{"line":64,"column":4}},{"start":{"line":64,"column":4},"end":{"line":64,"column":4}}]},"4":{"line":92,"type":"if","locations":[{"start":{"line":92,"column":4},"end":{"line":92,"column":4}},{"start":{"line":92,"column":4},"end":{"line":92,"column":4}}]},"5":{"line":151,"type":"if","locations":[{"start":{"line":151,"column":4},"end":{"line":151,"column":4}},{"start":{"line":151,"column":4},"end":{"line":151,"column":4}}]},"6":{"line":166,"type":"if","locations":[{"start":{"line":166,"column":4},"end":{"line":166,"column":4}},{"start":{"line":166,"column":4},"end":{"line":166,"column":4}}]},"7":{"line":171,"type":"if","locations":[{"start":{"line":171,"column":11},"end":{"line":171,"column":11}},{"start":{"line":171,"column":11},"end":{"line":171,"column":11}}]},"8":{"line":182,"type":"if","locations":[{"start":{"line":182,"column":4},"end":{"line":182,"column":4}},{"start":{"line":182,"column":4},"end":{"line":182,"column":4}}]},"9":{"line":188,"type":"binary-expr","locations":[{"start":{"line":188,"column":29},"end":{"line":188,"column":51}},{"start":{"line":188,"column":55},"end":{"line":188,"column":70}}]},"10":{"line":191,"type":"if","locations":[{"start":{"line":191,"column":4},"end":{"line":191,"column":4}},{"start":{"line":191,"column":4},"end":{"line":191,"column":4}}]},"11":{"line":191,"type":"binary-expr","locations":[{"start":{"line":191,"column":8},"end":{"line":191,"column":30}},{"start":{"line":191,"column":34},"end":{"line":191,"column":69}}]},"12":{"line":198,"type":"if","locations":[{"start":{"line":198,"column":8},"end":{"line":198,"column":8}},{"start":{"line":198,"column":8},"end":{"line":198,"column":8}}]}}},"./src/marionette.templatecache.js":{"path":"./src/marionette.templatecache.js","s":{"1":1,"2":30,"3":1,"4":140,"5":140,"6":30,"7":30,"8":140,"9":6,"10":6,"11":6,"12":6,"13":4,"14":6,"15":2,"16":1,"17":140,"18":110,"19":30,"20":30,"21":30,"22":30,"23":30,"24":0,"25":30,"26":30},"b":{"1":[30,110],"2":[4,2],"3":[110,30],"4":[0,30],"5":[30,30]},"f":{"1":30,"2":140,"3":6,"4":140,"5":30,"6":30},"fnMap":{"1":{"name":"(anonymous_1)","line":6,"loc":{"start":{"line":6,"column":27},"end":{"line":6,"column":47}}},"2":{"name":"(anonymous_2)","line":19,"loc":{"start":{"line":19,"column":7},"end":{"line":19,"column":27}}},"3":{"name":"(anonymous_3)","line":37,"loc":{"start":{"line":37,"column":9},"end":{"line":37,"column":19}}},"4":{"name":"(anonymous_4)","line":58,"loc":{"start":{"line":58,"column":8},"end":{"line":58,"column":18}}},"5":{"name":"(anonymous_5)","line":76,"loc":{"start":{"line":76,"column":16},"end":{"line":76,"column":36}}},"6":{"name":"(anonymous_6)","line":90,"loc":{"start":{"line":90,"column":19},"end":{"line":90,"column":40}}}},"statementMap":{"1":{"start":{"line":6,"column":0},"end":{"line":8,"column":2}},"2":{"start":{"line":7,"column":2},"end":{"line":7,"column":31}},"3":{"start":{"line":13,"column":0},"end":{"line":50,"column":3}},"4":{"start":{"line":20,"column":4},"end":{"line":20,"column":57}},"5":{"start":{"line":22,"column":4},"end":{"line":25,"column":5}},"6":{"start":{"line":23,"column":6},"end":{"line":23,"column":64}},"7":{"start":{"line":24,"column":6},"end":{"line":24,"column":55}},"8":{"start":{"line":27,"column":4},"end":{"line":27,"column":33}},"9":{"start":{"line":38,"column":4},"end":{"line":38,"column":10}},"10":{"start":{"line":39,"column":4},"end":{"line":39,"column":32}},"11":{"start":{"line":40,"column":4},"end":{"line":40,"column":29}},"12":{"start":{"line":42,"column":4},"end":{"line":48,"column":5}},"13":{"start":{"line":43,"column":6},"end":{"line":45,"column":7}},"14":{"start":{"line":44,"column":8},"end":{"line":44,"column":44}},"15":{"start":{"line":47,"column":6},"end":{"line":47,"column":31}},"16":{"start":{"line":55,"column":0},"end":{"line":93,"column":3}},"17":{"start":{"line":60,"column":4},"end":{"line":62,"column":5}},"18":{"start":{"line":61,"column":6},"end":{"line":61,"column":35}},"19":{"start":{"line":65,"column":4},"end":{"line":65,"column":54}},"20":{"start":{"line":66,"column":4},"end":{"line":66,"column":59}},"21":{"start":{"line":68,"column":4},"end":{"line":68,"column":33}},"22":{"start":{"line":77,"column":4},"end":{"line":77,"column":51}},"23":{"start":{"line":79,"column":4},"end":{"line":81,"column":5}},"24":{"start":{"line":80,"column":6},"end":{"line":80,"column":85}},"25":{"start":{"line":83,"column":4},"end":{"line":83,"column":20}},"26":{"start":{"line":91,"column":4},"end":{"line":91,"column":35}}},"branchMap":{"1":{"line":22,"type":"if","locations":[{"start":{"line":22,"column":4},"end":{"line":22,"column":4}},{"start":{"line":22,"column":4},"end":{"line":22,"column":4}}]},"2":{"line":42,"type":"if","locations":[{"start":{"line":42,"column":4},"end":{"line":42,"column":4}},{"start":{"line":42,"column":4},"end":{"line":42,"column":4}}]},"3":{"line":60,"type":"if","locations":[{"start":{"line":60,"column":4},"end":{"line":60,"column":4}},{"start":{"line":60,"column":4},"end":{"line":60,"column":4}}]},"4":{"line":79,"type":"if","locations":[{"start":{"line":79,"column":4},"end":{"line":79,"column":4}},{"start":{"line":79,"column":4},"end":{"line":79,"column":4}}]},"5":{"line":79,"type":"binary-expr","locations":[{"start":{"line":79,"column":8},"end":{"line":79,"column":17}},{"start":{"line":79,"column":21},"end":{"line":79,"column":42}}]}}},"./src/marionette.renderer.js":{"path":"./src/marionette.renderer.js","s":{"1":1,"2":172,"3":3,"4":3,"5":3,"6":169,"7":169,"8":46,"9":123,"10":169},"b":{"1":[3,169],"2":[46,123]},"f":{"1":172},"fnMap":{"1":{"name":"(anonymous_1)","line":12,"loc":{"start":{"line":12,"column":10},"end":{"line":12,"column":34}}}},"statementMap":{"1":{"start":{"line":6,"column":0},"end":{"line":29,"column":2}},"2":{"start":{"line":14,"column":4},"end":{"line":18,"column":5}},"3":{"start":{"line":15,"column":6},"end":{"line":15,"column":95}},"4":{"start":{"line":16,"column":6},"end":{"line":16,"column":43}},"5":{"start":{"line":17,"column":6},"end":{"line":17,"column":18}},"6":{"start":{"line":20,"column":4},"end":{"line":20,"column":21}},"7":{"start":{"line":21,"column":4},"end":{"line":25,"column":5}},"8":{"start":{"line":22,"column":6},"end":{"line":22,"column":30}},"9":{"start":{"line":24,"column":6},"end":{"line":24,"column":60}},"10":{"start":{"line":27,"column":4},"end":{"line":27,"column":30}}},"branchMap":{"1":{"line":14,"type":"if","locations":[{"start":{"line":14,"column":4},"end":{"line":14,"column":4}},{"start":{"line":14,"column":4},"end":{"line":14,"column":4}}]},"2":{"line":21,"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":21,"column":4}},{"start":{"line":21,"column":4},"end":{"line":21,"column":4}}]}}},"./src/marionette.callbacks.js":{"path":"./src/marionette.callbacks.js","s":{"1":1,"2":374,"3":374,"4":1,"5":235,"6":235,"7":120,"8":1,"9":120,"10":158,"11":30,"12":30,"13":30,"14":30,"15":35},"b":{"1":[1,119]},"f":{"1":374,"2":235,"3":120,"4":158,"5":30,"6":35},"fnMap":{"1":{"name":"(anonymous_1)","line":7,"loc":{"start":{"line":7,"column":23},"end":{"line":7,"column":33}}},"2":{"name":"(anonymous_2)","line":17,"loc":{"start":{"line":17,"column":7},"end":{"line":17,"column":42}}},"3":{"name":"(anonymous_3)","line":20,"loc":{"start":{"line":20,"column":24},"end":{"line":20,"column":50}}},"4":{"name":"(anonymous_4)","line":29,"loc":{"start":{"line":29,"column":7},"end":{"line":29,"column":33}}},"5":{"name":"(anonymous_5)","line":35,"loc":{"start":{"line":35,"column":9},"end":{"line":35,"column":19}}},"6":{"name":"(anonymous_6)","line":40,"loc":{"start":{"line":40,"column":22},"end":{"line":40,"column":34}}}},"statementMap":{"1":{"start":{"line":7,"column":0},"end":{"line":10,"column":2}},"2":{"start":{"line":8,"column":2},"end":{"line":8,"column":43}},"3":{"start":{"line":9,"column":2},"end":{"line":9,"column":23}},"4":{"start":{"line":12,"column":0},"end":{"line":44,"column":3}},"5":{"start":{"line":18,"column":4},"end":{"line":18,"column":63}},"6":{"start":{"line":20,"column":4},"end":{"line":23,"column":7}},"7":{"start":{"line":21,"column":6},"end":{"line":21,"column":56}},"8":{"start":{"line":21,"column":28},"end":{"line":21,"column":54}},"9":{"start":{"line":22,"column":6},"end":{"line":22,"column":38}},"10":{"start":{"line":30,"column":4},"end":{"line":30,"column":45}},"11":{"start":{"line":36,"column":4},"end":{"line":36,"column":36}},"12":{"start":{"line":37,"column":4},"end":{"line":37,"column":45}},"13":{"start":{"line":38,"column":4},"end":{"line":38,"column":25}},"14":{"start":{"line":40,"column":4},"end":{"line":42,"column":13}},"15":{"start":{"line":41,"column":6},"end":{"line":41,"column":30}}},"branchMap":{"1":{"line":21,"type":"if","locations":[{"start":{"line":21,"column":6},"end":{"line":21,"column":6}},{"start":{"line":21,"column":6},"end":{"line":21,"column":6}}]}}}} \ No newline at end of file +{"./src/build/marionette.core.js":{"path":"./src/build/marionette.core.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1},"b":{},"f":{"1":1},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":47}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":36,"column":22}},"2":{"start":{"line":5,"column":2},"end":{"line":5,"column":22}},"3":{"start":{"line":6,"column":2},"end":{"line":6,"column":35}},"4":{"start":{"line":9,"column":2},"end":{"line":9,"column":28}},"5":{"start":{"line":35,"column":2},"end":{"line":35,"column":20}}},"branchMap":{}},"./spec/javascripts/support/marionette.support.js":{"path":"./spec/javascripts/support/marionette.support.js","s":{"1":1},"b":{},"f":{},"fnMap":{},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":33}}},"branchMap":{}},"./src/marionette.helpers.js":{"path":"./src/marionette.helpers.js","s":{"1":1,"2":1,"3":1318,"4":1,"5":3,"6":3,"7":3,"8":1,"9":1,"10":3635,"11":0,"12":3635,"13":3635,"14":178,"15":3457,"16":3635},"b":{"1":[3,1],"2":[0,3635],"3":[3635,3635],"4":[178,3457],"5":[3635,3598,181]},"f":{"1":1318,"2":3,"3":3635},"fnMap":{"1":{"name":"slice","line":6,"loc":{"start":{"line":6,"column":0},"end":{"line":6,"column":21}}},"2":{"name":"throwError","line":10,"loc":{"start":{"line":10,"column":0},"end":{"line":10,"column":35}}},"3":{"name":"(anonymous_3)","line":27,"loc":{"start":{"line":27,"column":23},"end":{"line":27,"column":51}}}},"statementMap":{"1":{"start":{"line":5,"column":0},"end":{"line":5,"column":39}},"2":{"start":{"line":6,"column":0},"end":{"line":8,"column":1}},"3":{"start":{"line":7,"column":2},"end":{"line":7,"column":31}},"4":{"start":{"line":10,"column":0},"end":{"line":14,"column":1}},"5":{"start":{"line":11,"column":2},"end":{"line":11,"column":33}},"6":{"start":{"line":12,"column":2},"end":{"line":12,"column":31}},"7":{"start":{"line":13,"column":2},"end":{"line":13,"column":14}},"8":{"start":{"line":20,"column":0},"end":{"line":20,"column":42}},"9":{"start":{"line":27,"column":0},"end":{"line":38,"column":2}},"10":{"start":{"line":28,"column":2},"end":{"line":28,"column":40}},"11":{"start":{"line":28,"column":31},"end":{"line":28,"column":38}},"12":{"start":{"line":29,"column":2},"end":{"line":29,"column":12}},"13":{"start":{"line":31,"column":2},"end":{"line":35,"column":3}},"14":{"start":{"line":32,"column":4},"end":{"line":32,"column":39}},"15":{"start":{"line":34,"column":4},"end":{"line":34,"column":31}},"16":{"start":{"line":37,"column":2},"end":{"line":37,"column":15}}},"branchMap":{"1":{"line":12,"type":"binary-expr","locations":[{"start":{"line":12,"column":15},"end":{"line":12,"column":19}},{"start":{"line":12,"column":23},"end":{"line":12,"column":30}}]},"2":{"line":28,"type":"if","locations":[{"start":{"line":28,"column":2},"end":{"line":28,"column":2}},{"start":{"line":28,"column":2},"end":{"line":28,"column":2}}]},"3":{"line":28,"type":"binary-expr","locations":[{"start":{"line":28,"column":6},"end":{"line":28,"column":13}},{"start":{"line":28,"column":17},"end":{"line":28,"column":28}}]},"4":{"line":31,"type":"if","locations":[{"start":{"line":31,"column":2},"end":{"line":31,"column":2}},{"start":{"line":31,"column":2},"end":{"line":31,"column":2}}]},"5":{"line":31,"type":"binary-expr","locations":[{"start":{"line":31,"column":6},"end":{"line":31,"column":20}},{"start":{"line":31,"column":25},"end":{"line":31,"column":53}},{"start":{"line":31,"column":59},"end":{"line":31,"column":99}}]}}},"./src/marionette.triggermethod.js":{"path":"./src/marionette.triggermethod.js","s":{"1":1,"2":1,"3":1,"4":7262,"5":1,"6":3403,"7":3403,"8":3403,"9":3402,"10":3403,"11":385,"12":1},"b":{"1":[3402,1],"2":[385,3018]},"f":{"1":1,"2":7262,"3":3403},"fnMap":{"1":{"name":"(anonymous_1)","line":8,"loc":{"start":{"line":8,"column":28},"end":{"line":8,"column":38}}},"2":{"name":"getEventName","line":15,"loc":{"start":{"line":15,"column":2},"end":{"line":15,"column":50}}},"3":{"name":"(anonymous_3)","line":20,"loc":{"start":{"line":20,"column":22},"end":{"line":20,"column":38}}}},"statementMap":{"1":{"start":{"line":8,"column":0},"end":{"line":38,"column":5}},"2":{"start":{"line":11,"column":2},"end":{"line":11,"column":31}},"3":{"start":{"line":15,"column":2},"end":{"line":17,"column":3}},"4":{"start":{"line":16,"column":4},"end":{"line":16,"column":35}},"5":{"start":{"line":20,"column":2},"end":{"line":35,"column":4}},"6":{"start":{"line":22,"column":4},"end":{"line":22,"column":66}},"7":{"start":{"line":23,"column":4},"end":{"line":23,"column":34}},"8":{"start":{"line":26,"column":4},"end":{"line":28,"column":5}},"9":{"start":{"line":27,"column":6},"end":{"line":27,"column":42}},"10":{"start":{"line":31,"column":4},"end":{"line":34,"column":5}},"11":{"start":{"line":33,"column":6},"end":{"line":33,"column":51}},"12":{"start":{"line":37,"column":2},"end":{"line":37,"column":23}}},"branchMap":{"1":{"line":26,"type":"if","locations":[{"start":{"line":26,"column":4},"end":{"line":26,"column":4}},{"start":{"line":26,"column":4},"end":{"line":26,"column":4}}]},"2":{"line":31,"type":"if","locations":[{"start":{"line":31,"column":4},"end":{"line":31,"column":4}},{"start":{"line":31,"column":4},"end":{"line":31,"column":4}}]}}},"./src/marionette.bindEntityEvents.js":{"path":"./src/marionette.bindEntityEvents.js","s":{"1":1,"2":1,"3":25,"4":25,"5":29,"6":29,"7":1,"8":28,"9":1,"10":8,"11":1,"12":33,"13":33,"14":37,"15":37,"16":1,"17":8,"18":1,"19":2219,"20":2145,"21":74,"22":8,"23":74,"24":74,"25":16,"26":58,"27":1,"28":1105,"29":1,"30":1114},"b":{"1":[1,28],"2":[2145,74],"3":[2219,1018],"4":[8,66],"5":[16,58]},"f":{"1":1,"2":25,"3":29,"4":8,"5":33,"6":37,"7":8,"8":2219,"9":74,"10":1105,"11":1114},"fnMap":{"1":{"name":"(anonymous_1)","line":17,"loc":{"start":{"line":17,"column":1},"end":{"line":17,"column":21}}},"2":{"name":"bindFromStrings","line":22,"loc":{"start":{"line":22,"column":2},"end":{"line":22,"column":56}}},"3":{"name":"(anonymous_3)","line":25,"loc":{"start":{"line":25,"column":23},"end":{"line":25,"column":44}}},"4":{"name":"bindToFunction","line":37,"loc":{"start":{"line":37,"column":2},"end":{"line":37,"column":54}}},"5":{"name":"unbindFromStrings","line":43,"loc":{"start":{"line":43,"column":2},"end":{"line":43,"column":58}}},"6":{"name":"(anonymous_6)","line":46,"loc":{"start":{"line":46,"column":23},"end":{"line":46,"column":44}}},"7":{"name":"unbindToFunction","line":53,"loc":{"start":{"line":53,"column":2},"end":{"line":53,"column":56}}},"8":{"name":"iterateEvents","line":59,"loc":{"start":{"line":59,"column":2},"end":{"line":59,"column":84}}},"9":{"name":"(anonymous_9)","line":68,"loc":{"start":{"line":68,"column":21},"end":{"line":68,"column":43}}},"10":{"name":"(anonymous_10)","line":82,"loc":{"start":{"line":82,"column":32},"end":{"line":82,"column":66}}},"11":{"name":"(anonymous_11)","line":86,"loc":{"start":{"line":86,"column":34},"end":{"line":86,"column":68}}}},"statementMap":{"1":{"start":{"line":17,"column":0},"end":{"line":90,"column":15}},"2":{"start":{"line":22,"column":2},"end":{"line":34,"column":3}},"3":{"start":{"line":23,"column":4},"end":{"line":23,"column":43}},"4":{"start":{"line":25,"column":4},"end":{"line":33,"column":7}},"5":{"start":{"line":27,"column":6},"end":{"line":27,"column":38}},"6":{"start":{"line":28,"column":6},"end":{"line":30,"column":7}},"7":{"start":{"line":29,"column":8},"end":{"line":29,"column":104}},"8":{"start":{"line":32,"column":6},"end":{"line":32,"column":51}},"9":{"start":{"line":37,"column":2},"end":{"line":39,"column":3}},"10":{"start":{"line":38,"column":6},"end":{"line":38,"column":51}},"11":{"start":{"line":43,"column":2},"end":{"line":50,"column":3}},"12":{"start":{"line":44,"column":4},"end":{"line":44,"column":43}},"13":{"start":{"line":46,"column":4},"end":{"line":49,"column":7}},"14":{"start":{"line":47,"column":6},"end":{"line":47,"column":38}},"15":{"start":{"line":48,"column":6},"end":{"line":48,"column":56}},"16":{"start":{"line":53,"column":2},"end":{"line":55,"column":3}},"17":{"start":{"line":54,"column":6},"end":{"line":54,"column":56}},"18":{"start":{"line":59,"column":2},"end":{"line":79,"column":3}},"19":{"start":{"line":60,"column":4},"end":{"line":60,"column":41}},"20":{"start":{"line":60,"column":32},"end":{"line":60,"column":39}},"21":{"start":{"line":63,"column":4},"end":{"line":65,"column":5}},"22":{"start":{"line":64,"column":6},"end":{"line":64,"column":39}},"23":{"start":{"line":68,"column":4},"end":{"line":78,"column":7}},"24":{"start":{"line":72,"column":6},"end":{"line":76,"column":7}},"25":{"start":{"line":73,"column":8},"end":{"line":73,"column":55}},"26":{"start":{"line":75,"column":8},"end":{"line":75,"column":53}},"27":{"start":{"line":82,"column":2},"end":{"line":84,"column":4}},"28":{"start":{"line":83,"column":4},"end":{"line":83,"column":77}},"29":{"start":{"line":86,"column":2},"end":{"line":88,"column":4}},"30":{"start":{"line":87,"column":4},"end":{"line":87,"column":81}}},"branchMap":{"1":{"line":28,"type":"if","locations":[{"start":{"line":28,"column":6},"end":{"line":28,"column":6}},{"start":{"line":28,"column":6},"end":{"line":28,"column":6}}]},"2":{"line":60,"type":"if","locations":[{"start":{"line":60,"column":4},"end":{"line":60,"column":4}},{"start":{"line":60,"column":4},"end":{"line":60,"column":4}}]},"3":{"line":60,"type":"binary-expr","locations":[{"start":{"line":60,"column":8},"end":{"line":60,"column":15}},{"start":{"line":60,"column":19},"end":{"line":60,"column":28}}]},"4":{"line":63,"type":"if","locations":[{"start":{"line":63,"column":4},"end":{"line":63,"column":4}},{"start":{"line":63,"column":4},"end":{"line":63,"column":4}}]},"5":{"line":72,"type":"if","locations":[{"start":{"line":72,"column":6},"end":{"line":72,"column":6}},{"start":{"line":72,"column":6},"end":{"line":72,"column":6}}]}}},"./src/marionette.controller.js":{"path":"./src/marionette.controller.js","s":{"1":1,"2":178,"3":178,"4":178,"5":7,"6":1,"7":1,"8":12,"9":12,"10":12},"b":{"1":[178,173],"2":[7,171]},"f":{"1":178,"2":12},"fnMap":{"1":{"name":"(anonymous_1)","line":7,"loc":{"start":{"line":7,"column":24},"end":{"line":7,"column":41}}},"2":{"name":"(anonymous_2)","line":23,"loc":{"start":{"line":23,"column":9},"end":{"line":23,"column":19}}}},"statementMap":{"1":{"start":{"line":7,"column":0},"end":{"line":14,"column":2}},"2":{"start":{"line":8,"column":2},"end":{"line":8,"column":48}},"3":{"start":{"line":9,"column":2},"end":{"line":9,"column":31}},"4":{"start":{"line":11,"column":2},"end":{"line":13,"column":3}},"5":{"start":{"line":12,"column":4},"end":{"line":12,"column":34}},"6":{"start":{"line":16,"column":0},"end":{"line":16,"column":49}},"7":{"start":{"line":22,"column":0},"end":{"line":28,"column":3}},"8":{"start":{"line":24,"column":4},"end":{"line":24,"column":25}},"9":{"start":{"line":25,"column":4},"end":{"line":25,"column":32}},"10":{"start":{"line":26,"column":4},"end":{"line":26,"column":18}}},"branchMap":{"1":{"line":9,"type":"binary-expr","locations":[{"start":{"line":9,"column":17},"end":{"line":9,"column":24}},{"start":{"line":9,"column":28},"end":{"line":9,"column":30}}]},"2":{"line":11,"type":"if","locations":[{"start":{"line":11,"column":2},"end":{"line":11,"column":2}},{"start":{"line":11,"column":2},"end":{"line":11,"column":2}}]}}},"./src/marionette.domRefresh.js":{"path":"./src/marionette.domRefresh.js","s":{"1":1,"2":1,"3":35,"4":35,"5":1,"6":405,"7":405,"8":1,"9":440,"10":16,"11":16,"12":1,"13":26,"14":1,"15":550,"16":35,"17":550,"18":405},"b":{"1":[16,424],"2":[440,40,26],"3":[16,0]},"f":{"1":1,"2":35,"3":405,"4":440,"5":26,"6":550,"7":35,"8":405},"fnMap":{"1":{"name":"(anonymous_1)","line":8,"loc":{"start":{"line":8,"column":32},"end":{"line":8,"column":57}}},"2":{"name":"handleShow","line":11,"loc":{"start":{"line":11,"column":2},"end":{"line":11,"column":27}}},"3":{"name":"handleRender","line":17,"loc":{"start":{"line":17,"column":2},"end":{"line":17,"column":29}}},"4":{"name":"triggerDOMRefresh","line":23,"loc":{"start":{"line":23,"column":2},"end":{"line":23,"column":34}}},"5":{"name":"isInDOM","line":31,"loc":{"start":{"line":31,"column":2},"end":{"line":31,"column":25}}},"6":{"name":"(anonymous_6)","line":36,"loc":{"start":{"line":36,"column":9},"end":{"line":36,"column":23}}},"7":{"name":"(anonymous_7)","line":37,"loc":{"start":{"line":37,"column":32},"end":{"line":37,"column":42}}},"8":{"name":"(anonymous_8)","line":41,"loc":{"start":{"line":41,"column":34},"end":{"line":41,"column":44}}}},"statementMap":{"1":{"start":{"line":8,"column":0},"end":{"line":45,"column":29}},"2":{"start":{"line":11,"column":2},"end":{"line":14,"column":3}},"3":{"start":{"line":12,"column":4},"end":{"line":12,"column":25}},"4":{"start":{"line":13,"column":4},"end":{"line":13,"column":28}},"5":{"start":{"line":17,"column":2},"end":{"line":20,"column":3}},"6":{"start":{"line":18,"column":4},"end":{"line":18,"column":28}},"7":{"start":{"line":19,"column":4},"end":{"line":19,"column":28}},"8":{"start":{"line":23,"column":2},"end":{"line":29,"column":3}},"9":{"start":{"line":24,"column":4},"end":{"line":28,"column":5}},"10":{"start":{"line":25,"column":6},"end":{"line":27,"column":7}},"11":{"start":{"line":26,"column":8},"end":{"line":26,"column":42}},"12":{"start":{"line":31,"column":2},"end":{"line":33,"column":3}},"13":{"start":{"line":32,"column":4},"end":{"line":32,"column":45}},"14":{"start":{"line":36,"column":2},"end":{"line":44,"column":4}},"15":{"start":{"line":37,"column":4},"end":{"line":39,"column":7}},"16":{"start":{"line":38,"column":6},"end":{"line":38,"column":23}},"17":{"start":{"line":41,"column":4},"end":{"line":43,"column":7}},"18":{"start":{"line":42,"column":6},"end":{"line":42,"column":25}}},"branchMap":{"1":{"line":24,"type":"if","locations":[{"start":{"line":24,"column":4},"end":{"line":24,"column":4}},{"start":{"line":24,"column":4},"end":{"line":24,"column":4}}]},"2":{"line":24,"type":"binary-expr","locations":[{"start":{"line":24,"column":8},"end":{"line":24,"column":21}},{"start":{"line":24,"column":25},"end":{"line":24,"column":41}},{"start":{"line":24,"column":45},"end":{"line":24,"column":58}}]},"3":{"line":25,"type":"if","locations":[{"start":{"line":25,"column":6},"end":{"line":25,"column":6}},{"start":{"line":25,"column":6},"end":{"line":25,"column":6}}]}}},"./src/marionette.view.js":{"path":"./src/marionette.view.js","s":{"1":1,"2":551,"3":551,"4":551,"5":551,"6":551,"7":550,"8":550,"9":177,"10":177,"11":177,"12":177,"13":3,"14":177,"15":572,"16":538,"17":34,"18":43,"19":43,"20":2,"21":2,"22":34,"23":553,"24":532,"25":21,"26":21,"27":21,"28":30,"29":30,"30":30,"31":24,"32":24,"33":24,"34":24,"35":24,"36":24,"37":22,"38":24,"39":22,"40":24,"41":24,"42":21,"43":553,"44":553,"45":552,"46":553,"47":553,"48":0,"49":553,"50":553,"51":553,"52":553,"53":557,"54":557,"55":557,"56":557,"57":130,"58":5,"59":125,"60":125,"61":3,"62":122,"63":122,"64":122,"65":122,"66":175,"67":157,"68":18,"69":15,"70":18,"71":18,"72":18,"73":40,"74":40,"75":122,"76":120,"77":2,"78":2,"79":2,"80":2},"b":{"1":[1,550],"2":[177,0],"3":[3,174],"4":[538,34],"5":[2,41],"6":[532,21],"7":[4,26],"8":[24,0],"9":[4,20],"10":[4,20],"11":[22,2],"12":[24,22],"13":[22,2],"14":[24,22],"15":[553,553],"16":[0,553],"17":[5,125],"18":[3,122],"19":[157,18],"20":[15,3],"21":[120,2],"22":[122,3]},"f":{"1":551,"2":177,"3":177,"4":572,"5":43,"6":553,"7":30,"8":24,"9":553,"10":553,"11":557,"12":28,"13":130,"14":175,"15":40,"16":122,"17":2},"fnMap":{"1":{"name":"(anonymous_1)","line":7,"loc":{"start":{"line":7,"column":15},"end":{"line":7,"column":32}}},"2":{"name":"(anonymous_2)","line":34,"loc":{"start":{"line":34,"column":15},"end":{"line":34,"column":25}}},"3":{"name":"(anonymous_3)","line":43,"loc":{"start":{"line":43,"column":24},"end":{"line":43,"column":40}}},"4":{"name":"(anonymous_4)","line":55,"loc":{"start":{"line":55,"column":19},"end":{"line":55,"column":34}}},"5":{"name":"(anonymous_5)","line":60,"loc":{"start":{"line":60,"column":25},"end":{"line":60,"column":37}}},"6":{"name":"(anonymous_6)","line":73,"loc":{"start":{"line":73,"column":21},"end":{"line":73,"column":31}}},"7":{"name":"(anonymous_7)","line":83,"loc":{"start":{"line":83,"column":21},"end":{"line":83,"column":41}}},"8":{"name":"(anonymous_8)","line":89,"loc":{"start":{"line":89,"column":27},"end":{"line":89,"column":38}}},"9":{"name":"(anonymous_9)","line":121,"loc":{"start":{"line":121,"column":18},"end":{"line":121,"column":34}}},"10":{"name":"(anonymous_10)","line":128,"loc":{"start":{"line":128,"column":22},"end":{"line":128,"column":38}}},"11":{"name":"(anonymous_11)","line":141,"loc":{"start":{"line":141,"column":20},"end":{"line":141,"column":30}}},"12":{"name":"(anonymous_12)","line":150,"loc":{"start":{"line":150,"column":16},"end":{"line":150,"column":26}}},"13":{"name":"(anonymous_13)","line":156,"loc":{"start":{"line":156,"column":9},"end":{"line":156,"column":19}}},"14":{"name":"(anonymous_14)","line":181,"loc":{"start":{"line":181,"column":18},"end":{"line":181,"column":28}}},"15":{"name":"(anonymous_15)","line":197,"loc":{"start":{"line":197,"column":29},"end":{"line":197,"column":43}}},"16":{"name":"(anonymous_16)","line":204,"loc":{"start":{"line":204,"column":20},"end":{"line":204,"column":30}}},"17":{"name":"(anonymous_17)","line":208,"loc":{"start":{"line":208,"column":20},"end":{"line":208,"column":39}}}},"statementMap":{"1":{"start":{"line":5,"column":0},"end":{"line":216,"column":3}},"2":{"start":{"line":8,"column":4},"end":{"line":8,"column":30}},"3":{"start":{"line":10,"column":4},"end":{"line":10,"column":54}},"4":{"start":{"line":16,"column":4},"end":{"line":16,"column":113}},"5":{"start":{"line":19,"column":4},"end":{"line":19,"column":65}},"6":{"start":{"line":20,"column":4},"end":{"line":20,"column":58}},"7":{"start":{"line":22,"column":4},"end":{"line":22,"column":39}},"8":{"start":{"line":23,"column":4},"end":{"line":23,"column":57}},"9":{"start":{"line":35,"column":4},"end":{"line":35,"column":50}},"10":{"start":{"line":44,"column":4},"end":{"line":44,"column":26}},"11":{"start":{"line":45,"column":4},"end":{"line":45,"column":72}},"12":{"start":{"line":46,"column":4},"end":{"line":48,"column":5}},"13":{"start":{"line":47,"column":6},"end":{"line":47,"column":51}},"14":{"start":{"line":49,"column":4},"end":{"line":49,"column":45}},"15":{"start":{"line":56,"column":4},"end":{"line":58,"column":5}},"16":{"start":{"line":57,"column":6},"end":{"line":57,"column":13}},"17":{"start":{"line":60,"column":4},"end":{"line":66,"column":13}},"18":{"start":{"line":61,"column":6},"end":{"line":61,"column":34}},"19":{"start":{"line":62,"column":6},"end":{"line":65,"column":7}},"20":{"start":{"line":63,"column":8},"end":{"line":63,"column":51}},"21":{"start":{"line":64,"column":8},"end":{"line":64,"column":23}},"22":{"start":{"line":68,"column":4},"end":{"line":68,"column":16}},"23":{"start":{"line":74,"column":4},"end":{"line":74,"column":35}},"24":{"start":{"line":74,"column":26},"end":{"line":74,"column":33}},"25":{"start":{"line":76,"column":4},"end":{"line":76,"column":27}},"26":{"start":{"line":79,"column":4},"end":{"line":79,"column":68}},"27":{"start":{"line":83,"column":4},"end":{"line":114,"column":13}},"28":{"start":{"line":85,"column":6},"end":{"line":85,"column":41}},"29":{"start":{"line":86,"column":6},"end":{"line":86,"column":55}},"30":{"start":{"line":89,"column":6},"end":{"line":112,"column":8}},"31":{"start":{"line":92,"column":8},"end":{"line":101,"column":9}},"32":{"start":{"line":93,"column":10},"end":{"line":93,"column":41}},"33":{"start":{"line":94,"column":10},"end":{"line":94,"column":39}},"34":{"start":{"line":96,"column":10},"end":{"line":96,"column":74}},"35":{"start":{"line":97,"column":10},"end":{"line":97,"column":69}},"36":{"start":{"line":99,"column":10},"end":{"line":99,"column":61}},"37":{"start":{"line":99,"column":42},"end":{"line":99,"column":59}},"38":{"start":{"line":100,"column":10},"end":{"line":100,"column":52}},"39":{"start":{"line":100,"column":36},"end":{"line":100,"column":50}},"40":{"start":{"line":104,"column":8},"end":{"line":108,"column":10}},"41":{"start":{"line":111,"column":8},"end":{"line":111,"column":44}},"42":{"start":{"line":116,"column":4},"end":{"line":116,"column":25}},"43":{"start":{"line":122,"column":4},"end":{"line":122,"column":36}},"44":{"start":{"line":123,"column":4},"end":{"line":123,"column":93}},"45":{"start":{"line":124,"column":4},"end":{"line":124,"column":103}},"46":{"start":{"line":129,"column":4},"end":{"line":129,"column":35}},"47":{"start":{"line":130,"column":4},"end":{"line":130,"column":60}},"48":{"start":{"line":130,"column":31},"end":{"line":130,"column":58}},"49":{"start":{"line":132,"column":4},"end":{"line":132,"column":28}},"50":{"start":{"line":133,"column":4},"end":{"line":133,"column":44}},"51":{"start":{"line":134,"column":4},"end":{"line":134,"column":47}},"52":{"start":{"line":136,"column":4},"end":{"line":136,"column":70}},"53":{"start":{"line":142,"column":4},"end":{"line":142,"column":53}},"54":{"start":{"line":143,"column":4},"end":{"line":143,"column":63}},"55":{"start":{"line":145,"column":4},"end":{"line":145,"column":95}},"56":{"start":{"line":146,"column":4},"end":{"line":146,"column":105}},"57":{"start":{"line":157,"column":4},"end":{"line":157,"column":34}},"58":{"start":{"line":157,"column":25},"end":{"line":157,"column":32}},"59":{"start":{"line":161,"column":4},"end":{"line":161,"column":57}},"60":{"start":{"line":162,"column":4},"end":{"line":164,"column":5}},"61":{"start":{"line":163,"column":6},"end":{"line":163,"column":13}},"62":{"start":{"line":169,"column":4},"end":{"line":169,"column":25}},"63":{"start":{"line":170,"column":4},"end":{"line":170,"column":32}},"64":{"start":{"line":173,"column":4},"end":{"line":173,"column":28}},"65":{"start":{"line":176,"column":4},"end":{"line":176,"column":18}},"66":{"start":{"line":182,"column":4},"end":{"line":182,"column":29}},"67":{"start":{"line":182,"column":20},"end":{"line":182,"column":27}},"68":{"start":{"line":186,"column":4},"end":{"line":188,"column":5}},"69":{"start":{"line":187,"column":6},"end":{"line":187,"column":33}},"70":{"start":{"line":191,"column":4},"end":{"line":191,"column":49}},"71":{"start":{"line":194,"column":4},"end":{"line":194,"column":17}},"72":{"start":{"line":197,"column":4},"end":{"line":200,"column":13}},"73":{"start":{"line":198,"column":6},"end":{"line":198,"column":35}},"74":{"start":{"line":199,"column":6},"end":{"line":199,"column":38}},"75":{"start":{"line":205,"column":4},"end":{"line":205,"column":49}},"76":{"start":{"line":205,"column":40},"end":{"line":205,"column":47}},"77":{"start":{"line":208,"column":4},"end":{"line":210,"column":13}},"78":{"start":{"line":209,"column":6},"end":{"line":209,"column":27}},"79":{"start":{"line":213,"column":4},"end":{"line":213,"column":31}},"80":{"start":{"line":214,"column":4},"end":{"line":214,"column":28}}},"branchMap":{"1":{"line":16,"type":"cond-expr","locations":[{"start":{"line":16,"column":83},"end":{"line":16,"column":101}},{"start":{"line":16,"column":104},"end":{"line":16,"column":111}}]},"2":{"line":44,"type":"binary-expr","locations":[{"start":{"line":44,"column":13},"end":{"line":44,"column":19}},{"start":{"line":44,"column":23},"end":{"line":44,"column":25}}]},"3":{"line":46,"type":"if","locations":[{"start":{"line":46,"column":4},"end":{"line":46,"column":4}},{"start":{"line":46,"column":4},"end":{"line":46,"column":4}}]},"4":{"line":56,"type":"if","locations":[{"start":{"line":56,"column":4},"end":{"line":56,"column":4}},{"start":{"line":56,"column":4},"end":{"line":56,"column":4}}]},"5":{"line":62,"type":"if","locations":[{"start":{"line":62,"column":6},"end":{"line":62,"column":6}},{"start":{"line":62,"column":6},"end":{"line":62,"column":6}}]},"6":{"line":74,"type":"if","locations":[{"start":{"line":74,"column":4},"end":{"line":74,"column":4}},{"start":{"line":74,"column":4},"end":{"line":74,"column":4}}]},"7":{"line":86,"type":"cond-expr","locations":[{"start":{"line":86,"column":35},"end":{"line":86,"column":46}},{"start":{"line":86,"column":49},"end":{"line":86,"column":54}}]},"8":{"line":92,"type":"if","locations":[{"start":{"line":92,"column":8},"end":{"line":92,"column":8}},{"start":{"line":92,"column":8},"end":{"line":92,"column":8}}]},"9":{"line":96,"type":"cond-expr","locations":[{"start":{"line":96,"column":43},"end":{"line":96,"column":63}},{"start":{"line":96,"column":66},"end":{"line":96,"column":73}}]},"10":{"line":97,"type":"cond-expr","locations":[{"start":{"line":97,"column":40},"end":{"line":97,"column":61}},{"start":{"line":97,"column":64},"end":{"line":97,"column":68}}]},"11":{"line":99,"type":"if","locations":[{"start":{"line":99,"column":10},"end":{"line":99,"column":10}},{"start":{"line":99,"column":10},"end":{"line":99,"column":10}}]},"12":{"line":99,"type":"binary-expr","locations":[{"start":{"line":99,"column":14},"end":{"line":99,"column":27}},{"start":{"line":99,"column":31},"end":{"line":99,"column":38}}]},"13":{"line":100,"type":"if","locations":[{"start":{"line":100,"column":10},"end":{"line":100,"column":10}},{"start":{"line":100,"column":10},"end":{"line":100,"column":10}}]},"14":{"line":100,"type":"binary-expr","locations":[{"start":{"line":100,"column":14},"end":{"line":100,"column":24}},{"start":{"line":100,"column":28},"end":{"line":100,"column":32}}]},"15":{"line":129,"type":"binary-expr","locations":[{"start":{"line":129,"column":13},"end":{"line":129,"column":19}},{"start":{"line":129,"column":23},"end":{"line":129,"column":34}}]},"16":{"line":130,"type":"if","locations":[{"start":{"line":130,"column":4},"end":{"line":130,"column":4}},{"start":{"line":130,"column":4},"end":{"line":130,"column":4}}]},"17":{"line":157,"type":"if","locations":[{"start":{"line":157,"column":4},"end":{"line":157,"column":4}},{"start":{"line":157,"column":4},"end":{"line":157,"column":4}}]},"18":{"line":162,"type":"if","locations":[{"start":{"line":162,"column":4},"end":{"line":162,"column":4}},{"start":{"line":162,"column":4},"end":{"line":162,"column":4}}]},"19":{"line":182,"type":"if","locations":[{"start":{"line":182,"column":4},"end":{"line":182,"column":4}},{"start":{"line":182,"column":4},"end":{"line":182,"column":4}}]},"20":{"line":186,"type":"if","locations":[{"start":{"line":186,"column":4},"end":{"line":186,"column":4}},{"start":{"line":186,"column":4},"end":{"line":186,"column":4}}]},"21":{"line":205,"type":"if","locations":[{"start":{"line":205,"column":4},"end":{"line":205,"column":4}},{"start":{"line":205,"column":4},"end":{"line":205,"column":4}}]},"22":{"line":205,"type":"binary-expr","locations":[{"start":{"line":205,"column":8},"end":{"line":205,"column":16}},{"start":{"line":205,"column":20},"end":{"line":205,"column":37}}]}}},"./src/marionette.itemview.js":{"path":"./src/marionette.itemview.js","s":{"1":1,"2":352,"3":122,"4":122,"5":75,"6":47,"7":2,"8":122,"9":122,"10":122,"11":122,"12":122,"13":122,"14":122,"15":122,"16":121,"17":121,"18":121,"19":121,"20":121,"21":91,"22":2,"23":89,"24":89,"25":89},"b":{"1":[75,47],"2":[2,45],"3":[2,89]},"f":{"1":352,"2":122,"3":122,"4":91},"fnMap":{"1":{"name":"(anonymous_1)","line":11,"loc":{"start":{"line":11,"column":15},"end":{"line":11,"column":25}}},"2":{"name":"(anonymous_2)","line":21,"loc":{"start":{"line":21,"column":17},"end":{"line":21,"column":27}}},"3":{"name":"(anonymous_3)","line":39,"loc":{"start":{"line":39,"column":10},"end":{"line":39,"column":20}}},"4":{"name":"(anonymous_4)","line":62,"loc":{"start":{"line":62,"column":9},"end":{"line":62,"column":19}}}},"statementMap":{"1":{"start":{"line":7,"column":0},"end":{"line":71,"column":3}},"2":{"start":{"line":12,"column":4},"end":{"line":12,"column":72}},"3":{"start":{"line":22,"column":4},"end":{"line":22,"column":18}},"4":{"start":{"line":24,"column":4},"end":{"line":29,"column":5}},"5":{"start":{"line":25,"column":6},"end":{"line":25,"column":33}},"6":{"start":{"line":27,"column":9},"end":{"line":29,"column":5}},"7":{"start":{"line":28,"column":6},"end":{"line":28,"column":49}},"8":{"start":{"line":31,"column":4},"end":{"line":31,"column":16}},"9":{"start":{"line":40,"column":4},"end":{"line":40,"column":26}},"10":{"start":{"line":42,"column":4},"end":{"line":42,"column":46}},"11":{"start":{"line":43,"column":4},"end":{"line":43,"column":51}},"12":{"start":{"line":45,"column":4},"end":{"line":45,"column":36}},"13":{"start":{"line":46,"column":4},"end":{"line":46,"column":43}},"14":{"start":{"line":48,"column":4},"end":{"line":48,"column":38}},"15":{"start":{"line":49,"column":4},"end":{"line":49,"column":58}},"16":{"start":{"line":51,"column":4},"end":{"line":51,"column":24}},"17":{"start":{"line":52,"column":4},"end":{"line":52,"column":26}},"18":{"start":{"line":54,"column":4},"end":{"line":54,"column":39}},"19":{"start":{"line":55,"column":4},"end":{"line":55,"column":46}},"20":{"start":{"line":57,"column":4},"end":{"line":57,"column":16}},"21":{"start":{"line":63,"column":4},"end":{"line":63,"column":33}},"22":{"start":{"line":63,"column":24},"end":{"line":63,"column":31}},"23":{"start":{"line":65,"column":4},"end":{"line":65,"column":44}},"24":{"start":{"line":67,"column":4},"end":{"line":67,"column":66}},"25":{"start":{"line":69,"column":4},"end":{"line":69,"column":38}}},"branchMap":{"1":{"line":24,"type":"if","locations":[{"start":{"line":24,"column":4},"end":{"line":24,"column":4}},{"start":{"line":24,"column":4},"end":{"line":24,"column":4}}]},"2":{"line":27,"type":"if","locations":[{"start":{"line":27,"column":9},"end":{"line":27,"column":9}},{"start":{"line":27,"column":9},"end":{"line":27,"column":9}}]},"3":{"line":63,"type":"if","locations":[{"start":{"line":63,"column":4},"end":{"line":63,"column":4}},{"start":{"line":63,"column":4},"end":{"line":63,"column":4}}]}}},"./src/marionette.collectionview.js":{"path":"./src/marionette.collectionview.js","s":{"1":1,"2":157,"3":157,"4":157,"5":157,"6":489,"7":167,"8":167,"9":166,"10":165,"11":165,"12":99,"13":90,"14":90,"15":90,"16":17,"17":17,"18":17,"19":17,"20":7,"21":7,"22":164,"23":164,"24":161,"25":161,"26":109,"27":109,"28":109,"29":108,"30":108,"31":167,"32":167,"33":167,"34":167,"35":128,"36":39,"37":166,"38":128,"39":128,"40":202,"41":201,"42":94,"43":94,"44":20,"45":20,"46":20,"47":184,"48":9,"49":9,"50":92,"51":149,"52":149,"53":1,"54":148,"55":241,"56":241,"57":4,"58":241,"59":241,"60":241,"61":241,"62":241,"63":241,"64":4,"65":241,"66":241,"67":241,"68":241,"69":342,"70":342,"71":342,"72":342,"73":342,"74":342,"75":2,"76":342,"77":342,"78":1,"79":341,"80":241,"81":241,"82":241,"83":241,"84":9,"85":9,"86":9,"87":67,"88":66,"89":66,"90":65,"91":1,"92":1,"93":66,"94":67,"95":206,"96":55,"97":108,"98":166,"99":142,"100":24,"101":157,"102":24,"103":4,"104":20,"105":20,"106":20,"107":20,"108":197,"109":58,"110":197},"b":{"1":[90,9],"2":[128,39],"3":[167,157],"4":[20,74],"5":[94,37],"6":[9,175],"7":[1,148],"8":[4,237],"9":[4,237],"10":[241,5],"11":[2,340],"12":[342,2],"13":[1,341],"14":[66,1],"15":[65,1],"16":[1,0],"17":[55,151],"18":[206,188],"19":[142,24],"20":[4,20]},"f":{"1":157,"2":489,"3":167,"4":166,"5":99,"6":17,"7":7,"8":7,"9":164,"10":161,"11":109,"12":167,"13":128,"14":202,"15":94,"16":184,"17":92,"18":149,"19":241,"20":241,"21":342,"22":342,"23":241,"24":241,"25":9,"26":67,"27":206,"28":108,"29":166,"30":157,"31":24,"32":197,"33":58},"fnMap":{"1":{"name":"(anonymous_1)","line":12,"loc":{"start":{"line":12,"column":15},"end":{"line":12,"column":32}}},"2":{"name":"(anonymous_2)","line":24,"loc":{"start":{"line":24,"column":20},"end":{"line":24,"column":31}}},"3":{"name":"(anonymous_3)","line":28,"loc":{"start":{"line":28,"column":18},"end":{"line":28,"column":29}}},"4":{"name":"(anonymous_4)","line":33,"loc":{"start":{"line":33,"column":16},"end":{"line":33,"column":27}}},"5":{"name":"(anonymous_5)","line":42,"loc":{"start":{"line":42,"column":18},"end":{"line":42,"column":28}}},"6":{"name":"(anonymous_6)","line":51,"loc":{"start":{"line":51,"column":16},"end":{"line":51,"column":51}}},"7":{"name":"(anonymous_7)","line":60,"loc":{"start":{"line":60,"column":16},"end":{"line":60,"column":26}}},"8":{"name":"(anonymous_8)","line":61,"loc":{"start":{"line":61,"column":23},"end":{"line":61,"column":38}}},"9":{"name":"(anonymous_9)","line":68,"loc":{"start":{"line":68,"column":23},"end":{"line":68,"column":33}}},"10":{"name":"(anonymous_10)","line":75,"loc":{"start":{"line":75,"column":19},"end":{"line":75,"column":29}}},"11":{"name":"(anonymous_11)","line":83,"loc":{"start":{"line":83,"column":10},"end":{"line":83,"column":20}}},"12":{"name":"(anonymous_12)","line":94,"loc":{"start":{"line":94,"column":19},"end":{"line":94,"column":29}}},"13":{"name":"(anonymous_13)","line":111,"loc":{"start":{"line":111,"column":18},"end":{"line":111,"column":28}}},"14":{"name":"(anonymous_14)","line":113,"loc":{"start":{"line":113,"column":25},"end":{"line":113,"column":46}}},"15":{"name":"(anonymous_15)","line":122,"loc":{"start":{"line":122,"column":17},"end":{"line":122,"column":27}}},"16":{"name":"(anonymous_16)","line":135,"loc":{"start":{"line":135,"column":18},"end":{"line":135,"column":28}}},"17":{"name":"(anonymous_17)","line":143,"loc":{"start":{"line":143,"column":16},"end":{"line":143,"column":26}}},"18":{"name":"(anonymous_18)","line":150,"loc":{"start":{"line":150,"column":15},"end":{"line":150,"column":29}}},"19":{"name":"(anonymous_19)","line":162,"loc":{"start":{"line":162,"column":15},"end":{"line":162,"column":46}}},"20":{"name":"(anonymous_20)","line":199,"loc":{"start":{"line":199,"column":31},"end":{"line":199,"column":45}}},"21":{"name":"(anonymous_21)","line":204,"loc":{"start":{"line":204,"column":31},"end":{"line":204,"column":41}}},"22":{"name":"(anonymous_22)","line":222,"loc":{"start":{"line":222,"column":17},"end":{"line":222,"column":28}}},"23":{"name":"(anonymous_23)","line":231,"loc":{"start":{"line":231,"column":18},"end":{"line":231,"column":40}}},"24":{"name":"(anonymous_24)","line":237,"loc":{"start":{"line":237,"column":17},"end":{"line":237,"column":62}}},"25":{"name":"(anonymous_25)","line":243,"loc":{"start":{"line":243,"column":18},"end":{"line":243,"column":32}}},"26":{"name":"(anonymous_26)","line":250,"loc":{"start":{"line":250,"column":19},"end":{"line":250,"column":33}}},"27":{"name":"(anonymous_27)","line":268,"loc":{"start":{"line":268,"column":14},"end":{"line":268,"column":25}}},"28":{"name":"(anonymous_28)","line":277,"loc":{"start":{"line":277,"column":16},"end":{"line":277,"column":49}}},"29":{"name":"(anonymous_29)","line":284,"loc":{"start":{"line":284,"column":14},"end":{"line":284,"column":55}}},"30":{"name":"(anonymous_30)","line":300,"loc":{"start":{"line":300,"column":25},"end":{"line":300,"column":35}}},"31":{"name":"(anonymous_31)","line":306,"loc":{"start":{"line":306,"column":9},"end":{"line":306,"column":19}}},"32":{"name":"(anonymous_32)","line":318,"loc":{"start":{"line":318,"column":17},"end":{"line":318,"column":27}}},"33":{"name":"(anonymous_33)","line":319,"loc":{"start":{"line":319,"column":23},"end":{"line":319,"column":38}}}},"statementMap":{"1":{"start":{"line":6,"column":0},"end":{"line":324,"column":3}},"2":{"start":{"line":13,"column":4},"end":{"line":13,"column":33}},"3":{"start":{"line":15,"column":4},"end":{"line":15,"column":72}},"4":{"start":{"line":17,"column":4},"end":{"line":17,"column":26}},"5":{"start":{"line":18,"column":4},"end":{"line":18,"column":28}},"6":{"start":{"line":25,"column":4},"end":{"line":25,"column":55}},"7":{"start":{"line":29,"column":4},"end":{"line":29,"column":28}},"8":{"start":{"line":30,"column":4},"end":{"line":30,"column":28}},"9":{"start":{"line":34,"column":4},"end":{"line":34,"column":43}},"10":{"start":{"line":35,"column":4},"end":{"line":35,"column":28}},"11":{"start":{"line":36,"column":4},"end":{"line":36,"column":29}},"12":{"start":{"line":43,"column":4},"end":{"line":47,"column":5}},"13":{"start":{"line":44,"column":6},"end":{"line":44,"column":69}},"14":{"start":{"line":45,"column":6},"end":{"line":45,"column":74}},"15":{"start":{"line":46,"column":6},"end":{"line":46,"column":65}},"16":{"start":{"line":52,"column":4},"end":{"line":52,"column":26}},"17":{"start":{"line":53,"column":4},"end":{"line":53,"column":42}},"18":{"start":{"line":54,"column":4},"end":{"line":54,"column":46}},"19":{"start":{"line":55,"column":4},"end":{"line":55,"column":44}},"20":{"start":{"line":61,"column":4},"end":{"line":63,"column":7}},"21":{"start":{"line":62,"column":6},"end":{"line":62,"column":51}},"22":{"start":{"line":69,"column":4},"end":{"line":69,"column":46}},"23":{"start":{"line":70,"column":4},"end":{"line":70,"column":57}},"24":{"start":{"line":76,"column":4},"end":{"line":76,"column":39}},"25":{"start":{"line":77,"column":4},"end":{"line":77,"column":52}},"26":{"start":{"line":84,"column":4},"end":{"line":84,"column":26}},"27":{"start":{"line":85,"column":4},"end":{"line":85,"column":31}},"28":{"start":{"line":86,"column":4},"end":{"line":86,"column":27}},"29":{"start":{"line":87,"column":4},"end":{"line":87,"column":27}},"30":{"start":{"line":88,"column":4},"end":{"line":88,"column":16}},"31":{"start":{"line":95,"column":4},"end":{"line":95,"column":26}},"32":{"start":{"line":97,"column":4},"end":{"line":97,"column":26}},"33":{"start":{"line":98,"column":4},"end":{"line":98,"column":25}},"34":{"start":{"line":100,"column":4},"end":{"line":104,"column":5}},"35":{"start":{"line":101,"column":6},"end":{"line":101,"column":28}},"36":{"start":{"line":103,"column":6},"end":{"line":103,"column":27}},"37":{"start":{"line":106,"column":4},"end":{"line":106,"column":24}},"38":{"start":{"line":112,"column":4},"end":{"line":112,"column":17}},"39":{"start":{"line":113,"column":4},"end":{"line":116,"column":13}},"40":{"start":{"line":114,"column":6},"end":{"line":114,"column":40}},"41":{"start":{"line":115,"column":6},"end":{"line":115,"column":46}},"42":{"start":{"line":123,"column":4},"end":{"line":123,"column":40}},"43":{"start":{"line":125,"column":4},"end":{"line":129,"column":5}},"44":{"start":{"line":126,"column":6},"end":{"line":126,"column":36}},"45":{"start":{"line":127,"column":6},"end":{"line":127,"column":39}},"46":{"start":{"line":128,"column":6},"end":{"line":128,"column":44}},"47":{"start":{"line":136,"column":4},"end":{"line":139,"column":5}},"48":{"start":{"line":137,"column":6},"end":{"line":137,"column":27}},"49":{"start":{"line":138,"column":6},"end":{"line":138,"column":36}},"50":{"start":{"line":144,"column":4},"end":{"line":144,"column":51}},"51":{"start":{"line":151,"column":4},"end":{"line":151,"column":58}},"52":{"start":{"line":153,"column":4},"end":{"line":155,"column":5}},"53":{"start":{"line":154,"column":6},"end":{"line":154,"column":71}},"54":{"start":{"line":157,"column":4},"end":{"line":157,"column":20}},"55":{"start":{"line":164,"column":4},"end":{"line":164,"column":72}},"56":{"start":{"line":165,"column":4},"end":{"line":167,"column":5}},"57":{"start":{"line":166,"column":6},"end":{"line":166,"column":64}},"58":{"start":{"line":170,"column":4},"end":{"line":170,"column":67}},"59":{"start":{"line":173,"column":4},"end":{"line":173,"column":43}},"60":{"start":{"line":176,"column":4},"end":{"line":176,"column":50}},"61":{"start":{"line":180,"column":4},"end":{"line":180,"column":28}},"62":{"start":{"line":183,"column":4},"end":{"line":183,"column":37}},"63":{"start":{"line":187,"column":4},"end":{"line":189,"column":5}},"64":{"start":{"line":188,"column":6},"end":{"line":188,"column":50}},"65":{"start":{"line":192,"column":4},"end":{"line":192,"column":49}},"66":{"start":{"line":194,"column":4},"end":{"line":194,"column":16}},"67":{"start":{"line":200,"column":4},"end":{"line":200,"column":67}},"68":{"start":{"line":204,"column":4},"end":{"line":218,"column":13}},"69":{"start":{"line":205,"column":6},"end":{"line":205,"column":34}},"70":{"start":{"line":206,"column":6},"end":{"line":206,"column":30}},"71":{"start":{"line":207,"column":6},"end":{"line":207,"column":44}},"72":{"start":{"line":209,"column":6},"end":{"line":209,"column":41}},"73":{"start":{"line":210,"column":6},"end":{"line":210,"column":30}},"74":{"start":{"line":213,"column":6},"end":{"line":215,"column":7}},"75":{"start":{"line":214,"column":8},"end":{"line":214,"column":48}},"76":{"start":{"line":217,"column":6},"end":{"line":217,"column":49}},"77":{"start":{"line":223,"column":4},"end":{"line":225,"column":5}},"78":{"start":{"line":224,"column":6},"end":{"line":224,"column":40}},"79":{"start":{"line":227,"column":4},"end":{"line":227,"column":27}},"80":{"start":{"line":232,"column":4},"end":{"line":232,"column":18}},"81":{"start":{"line":233,"column":4},"end":{"line":233,"column":39}},"82":{"start":{"line":238,"column":4},"end":{"line":238,"column":59}},"83":{"start":{"line":239,"column":4},"end":{"line":239,"column":37}},"84":{"start":{"line":244,"column":4},"end":{"line":244,"column":47}},"85":{"start":{"line":245,"column":4},"end":{"line":245,"column":31}},"86":{"start":{"line":246,"column":4},"end":{"line":246,"column":22}},"87":{"start":{"line":254,"column":4},"end":{"line":262,"column":5}},"88":{"start":{"line":255,"column":6},"end":{"line":255,"column":31}},"89":{"start":{"line":258,"column":6},"end":{"line":259,"column":46}},"90":{"start":{"line":258,"column":24},"end":{"line":258,"column":37}},"91":{"start":{"line":259,"column":11},"end":{"line":259,"column":46}},"92":{"start":{"line":259,"column":30},"end":{"line":259,"column":44}},"93":{"start":{"line":261,"column":6},"end":{"line":261,"column":33}},"94":{"start":{"line":264,"column":4},"end":{"line":264,"column":45}},"95":{"start":{"line":271,"column":4},"end":{"line":273,"column":5}},"96":{"start":{"line":272,"column":6},"end":{"line":272,"column":27}},"97":{"start":{"line":278,"column":4},"end":{"line":278,"column":38}},"98":{"start":{"line":285,"column":4},"end":{"line":295,"column":5}},"99":{"start":{"line":289,"column":6},"end":{"line":289,"column":55}},"100":{"start":{"line":294,"column":6},"end":{"line":294,"column":45}},"101":{"start":{"line":301,"column":4},"end":{"line":301,"column":54}},"102":{"start":{"line":307,"column":4},"end":{"line":307,"column":33}},"103":{"start":{"line":307,"column":24},"end":{"line":307,"column":31}},"104":{"start":{"line":309,"column":4},"end":{"line":309,"column":50}},"105":{"start":{"line":310,"column":4},"end":{"line":310,"column":25}},"106":{"start":{"line":311,"column":4},"end":{"line":311,"column":44}},"107":{"start":{"line":313,"column":4},"end":{"line":313,"column":66}},"108":{"start":{"line":319,"column":4},"end":{"line":321,"column":13}},"109":{"start":{"line":320,"column":6},"end":{"line":320,"column":34}},"110":{"start":{"line":322,"column":4},"end":{"line":322,"column":22}}},"branchMap":{"1":{"line":43,"type":"if","locations":[{"start":{"line":43,"column":4},"end":{"line":43,"column":4}},{"start":{"line":43,"column":4},"end":{"line":43,"column":4}}]},"2":{"line":100,"type":"if","locations":[{"start":{"line":100,"column":4},"end":{"line":100,"column":4}},{"start":{"line":100,"column":4},"end":{"line":100,"column":4}}]},"3":{"line":100,"type":"binary-expr","locations":[{"start":{"line":100,"column":8},"end":{"line":100,"column":23}},{"start":{"line":100,"column":27},"end":{"line":100,"column":53}}]},"4":{"line":125,"type":"if","locations":[{"start":{"line":125,"column":4},"end":{"line":125,"column":4}},{"start":{"line":125,"column":4},"end":{"line":125,"column":4}}]},"5":{"line":125,"type":"binary-expr","locations":[{"start":{"line":125,"column":8},"end":{"line":125,"column":17}},{"start":{"line":125,"column":21},"end":{"line":125,"column":44}}]},"6":{"line":136,"type":"if","locations":[{"start":{"line":136,"column":4},"end":{"line":136,"column":4}},{"start":{"line":136,"column":4},"end":{"line":136,"column":4}}]},"7":{"line":153,"type":"if","locations":[{"start":{"line":153,"column":4},"end":{"line":153,"column":4}},{"start":{"line":153,"column":4},"end":{"line":153,"column":4}}]},"8":{"line":165,"type":"if","locations":[{"start":{"line":165,"column":4},"end":{"line":165,"column":4}},{"start":{"line":165,"column":4},"end":{"line":165,"column":4}}]},"9":{"line":187,"type":"if","locations":[{"start":{"line":187,"column":4},"end":{"line":187,"column":4}},{"start":{"line":187,"column":4},"end":{"line":187,"column":4}}]},"10":{"line":187,"type":"binary-expr","locations":[{"start":{"line":187,"column":8},"end":{"line":187,"column":21}},{"start":{"line":187,"column":25},"end":{"line":187,"column":42}}]},"11":{"line":213,"type":"if","locations":[{"start":{"line":213,"column":6},"end":{"line":213,"column":6}},{"start":{"line":213,"column":6},"end":{"line":213,"column":6}}]},"12":{"line":213,"type":"binary-expr","locations":[{"start":{"line":213,"column":10},"end":{"line":213,"column":43}},{"start":{"line":213,"column":47},"end":{"line":213,"column":82}}]},"13":{"line":223,"type":"if","locations":[{"start":{"line":223,"column":4},"end":{"line":223,"column":4}},{"start":{"line":223,"column":4},"end":{"line":223,"column":4}}]},"14":{"line":254,"type":"if","locations":[{"start":{"line":254,"column":4},"end":{"line":254,"column":4}},{"start":{"line":254,"column":4},"end":{"line":254,"column":4}}]},"15":{"line":258,"type":"if","locations":[{"start":{"line":258,"column":6},"end":{"line":258,"column":6}},{"start":{"line":258,"column":6},"end":{"line":258,"column":6}}]},"16":{"line":259,"type":"if","locations":[{"start":{"line":259,"column":11},"end":{"line":259,"column":11}},{"start":{"line":259,"column":11},"end":{"line":259,"column":11}}]},"17":{"line":271,"type":"if","locations":[{"start":{"line":271,"column":4},"end":{"line":271,"column":4}},{"start":{"line":271,"column":4},"end":{"line":271,"column":4}}]},"18":{"line":271,"type":"binary-expr","locations":[{"start":{"line":271,"column":8},"end":{"line":271,"column":24}},{"start":{"line":271,"column":28},"end":{"line":271,"column":56}}]},"19":{"line":285,"type":"if","locations":[{"start":{"line":285,"column":4},"end":{"line":285,"column":4}},{"start":{"line":285,"column":4},"end":{"line":285,"column":4}}]},"20":{"line":307,"type":"if","locations":[{"start":{"line":307,"column":4},"end":{"line":307,"column":4}},{"start":{"line":307,"column":4},"end":{"line":307,"column":4}}]}}},"./src/marionette.compositeview.js":{"path":"./src/marionette.compositeview.js","s":{"1":1,"2":59,"3":58,"4":48,"5":41,"6":41,"7":41,"8":72,"9":72,"10":0,"11":72,"12":55,"13":55,"14":41,"15":55,"16":55,"17":55,"18":55,"19":55,"20":55,"21":54,"22":54,"23":54,"24":54,"25":53,"26":53,"27":53,"28":58,"29":58,"30":57,"31":55,"32":55,"33":55,"34":55,"35":55,"36":58,"37":57,"38":53,"39":53,"40":0,"41":0,"42":58,"43":4,"44":54,"45":54,"46":54,"47":7,"48":7,"49":7,"50":1,"51":47,"52":53,"53":53,"54":55,"55":4},"b":{"1":[41,7],"2":[72,6],"3":[0,72],"4":[41,14],"5":[58,0],"6":[53,0],"7":[4,54],"8":[7,47],"9":[1,6],"10":[1,6],"11":[4,51]},"f":{"1":59,"2":58,"3":48,"4":72,"5":55,"6":55,"7":58,"8":55,"9":58,"10":53,"11":58,"12":55},"fnMap":{"1":{"name":"(anonymous_1)","line":11,"loc":{"start":{"line":11,"column":15},"end":{"line":11,"column":25}}},"2":{"name":"(anonymous_2)","line":18,"loc":{"start":{"line":18,"column":18},"end":{"line":18,"column":28}}},"3":{"name":"(anonymous_3)","line":22,"loc":{"start":{"line":22,"column":24},"end":{"line":22,"column":36}}},"4":{"name":"(anonymous_4)","line":36,"loc":{"start":{"line":36,"column":15},"end":{"line":36,"column":29}}},"5":{"name":"(anonymous_5)","line":49,"loc":{"start":{"line":49,"column":17},"end":{"line":49,"column":27}}},"6":{"name":"(anonymous_6)","line":62,"loc":{"start":{"line":62,"column":10},"end":{"line":62,"column":20}}},"7":{"name":"(anonymous_7)","line":83,"loc":{"start":{"line":83,"column":19},"end":{"line":83,"column":29}}},"8":{"name":"(anonymous_8)","line":93,"loc":{"start":{"line":93,"column":15},"end":{"line":93,"column":25}}},"9":{"name":"(anonymous_9)","line":104,"loc":{"start":{"line":104,"column":16},"end":{"line":104,"column":48}}},"10":{"name":"(anonymous_10)","line":113,"loc":{"start":{"line":113,"column":14},"end":{"line":113,"column":54}}},"11":{"name":"(anonymous_11)","line":128,"loc":{"start":{"line":128,"column":24},"end":{"line":128,"column":47}}},"12":{"name":"(anonymous_12)","line":152,"loc":{"start":{"line":152,"column":26},"end":{"line":152,"column":36}}}},"statementMap":{"1":{"start":{"line":7,"column":0},"end":{"line":157,"column":3}},"2":{"start":{"line":12,"column":4},"end":{"line":12,"column":82}},"3":{"start":{"line":22,"column":4},"end":{"line":28,"column":7}},"4":{"start":{"line":23,"column":6},"end":{"line":27,"column":7}},"5":{"start":{"line":24,"column":8},"end":{"line":24,"column":71}},"6":{"start":{"line":25,"column":8},"end":{"line":25,"column":76}},"7":{"start":{"line":26,"column":8},"end":{"line":26,"column":76}},"8":{"start":{"line":37,"column":4},"end":{"line":37,"column":78}},"9":{"start":{"line":39,"column":4},"end":{"line":41,"column":5}},"10":{"start":{"line":40,"column":6},"end":{"line":40,"column":71}},"11":{"start":{"line":43,"column":4},"end":{"line":43,"column":20}},"12":{"start":{"line":50,"column":4},"end":{"line":50,"column":18}},"13":{"start":{"line":52,"column":4},"end":{"line":54,"column":5}},"14":{"start":{"line":53,"column":6},"end":{"line":53,"column":33}},"15":{"start":{"line":56,"column":4},"end":{"line":56,"column":16}},"16":{"start":{"line":63,"column":4},"end":{"line":63,"column":27}},"17":{"start":{"line":64,"column":4},"end":{"line":64,"column":26}},"18":{"start":{"line":65,"column":4},"end":{"line":65,"column":34}},"19":{"start":{"line":67,"column":4},"end":{"line":67,"column":31}},"20":{"start":{"line":68,"column":4},"end":{"line":68,"column":34}},"21":{"start":{"line":69,"column":4},"end":{"line":69,"column":24}},"22":{"start":{"line":73,"column":4},"end":{"line":73,"column":26}},"23":{"start":{"line":74,"column":4},"end":{"line":74,"column":51}},"24":{"start":{"line":76,"column":4},"end":{"line":76,"column":27}},"25":{"start":{"line":78,"column":4},"end":{"line":78,"column":45}},"26":{"start":{"line":79,"column":4},"end":{"line":79,"column":27}},"27":{"start":{"line":80,"column":4},"end":{"line":80,"column":16}},"28":{"start":{"line":84,"column":4},"end":{"line":87,"column":5}},"29":{"start":{"line":85,"column":6},"end":{"line":85,"column":69}},"30":{"start":{"line":86,"column":6},"end":{"line":86,"column":58}},"31":{"start":{"line":94,"column":4},"end":{"line":94,"column":18}},"32":{"start":{"line":95,"column":4},"end":{"line":95,"column":32}},"33":{"start":{"line":96,"column":4},"end":{"line":96,"column":43}},"34":{"start":{"line":98,"column":4},"end":{"line":98,"column":38}},"35":{"start":{"line":99,"column":4},"end":{"line":99,"column":54}},"36":{"start":{"line":105,"column":4},"end":{"line":105,"column":62}},"37":{"start":{"line":106,"column":4},"end":{"line":106,"column":30}},"38":{"start":{"line":114,"column":4},"end":{"line":122,"column":5}},"39":{"start":{"line":115,"column":6},"end":{"line":115,"column":54}},"40":{"start":{"line":120,"column":6},"end":{"line":120,"column":64}},"41":{"start":{"line":121,"column":6},"end":{"line":121,"column":37}},"42":{"start":{"line":129,"column":4},"end":{"line":131,"column":5}},"43":{"start":{"line":130,"column":6},"end":{"line":130,"column":46}},"44":{"start":{"line":133,"column":4},"end":{"line":133,"column":18}},"45":{"start":{"line":134,"column":4},"end":{"line":134,"column":85}},"46":{"start":{"line":135,"column":4},"end":{"line":145,"column":5}},"47":{"start":{"line":137,"column":6},"end":{"line":137,"column":104}},"48":{"start":{"line":138,"column":6},"end":{"line":138,"column":44}},"49":{"start":{"line":139,"column":6},"end":{"line":141,"column":7}},"50":{"start":{"line":140,"column":8},"end":{"line":140,"column":139}},"51":{"start":{"line":144,"column":6},"end":{"line":144,"column":36}},"52":{"start":{"line":147,"column":4},"end":{"line":147,"column":49}},"53":{"start":{"line":148,"column":4},"end":{"line":148,"column":21}},"54":{"start":{"line":153,"column":4},"end":{"line":155,"column":5}},"55":{"start":{"line":154,"column":6},"end":{"line":154,"column":37}}},"branchMap":{"1":{"line":23,"type":"if","locations":[{"start":{"line":23,"column":6},"end":{"line":23,"column":6}},{"start":{"line":23,"column":6},"end":{"line":23,"column":6}}]},"2":{"line":37,"type":"binary-expr","locations":[{"start":{"line":37,"column":19},"end":{"line":37,"column":57}},{"start":{"line":37,"column":61},"end":{"line":37,"column":77}}]},"3":{"line":39,"type":"if","locations":[{"start":{"line":39,"column":4},"end":{"line":39,"column":4}},{"start":{"line":39,"column":4},"end":{"line":39,"column":4}}]},"4":{"line":52,"type":"if","locations":[{"start":{"line":52,"column":4},"end":{"line":52,"column":4}},{"start":{"line":52,"column":4},"end":{"line":52,"column":4}}]},"5":{"line":84,"type":"if","locations":[{"start":{"line":84,"column":4},"end":{"line":84,"column":4}},{"start":{"line":84,"column":4},"end":{"line":84,"column":4}}]},"6":{"line":114,"type":"if","locations":[{"start":{"line":114,"column":4},"end":{"line":114,"column":4}},{"start":{"line":114,"column":4},"end":{"line":114,"column":4}}]},"7":{"line":129,"type":"if","locations":[{"start":{"line":129,"column":4},"end":{"line":129,"column":4}},{"start":{"line":129,"column":4},"end":{"line":129,"column":4}}]},"8":{"line":135,"type":"if","locations":[{"start":{"line":135,"column":4},"end":{"line":135,"column":4}},{"start":{"line":135,"column":4},"end":{"line":135,"column":4}}]},"9":{"line":137,"type":"cond-expr","locations":[{"start":{"line":137,"column":55},"end":{"line":137,"column":83}},{"start":{"line":137,"column":86},"end":{"line":137,"column":103}}]},"10":{"line":139,"type":"if","locations":[{"start":{"line":139,"column":6},"end":{"line":139,"column":6}},{"start":{"line":139,"column":6},"end":{"line":139,"column":6}}]},"11":{"line":153,"type":"if","locations":[{"start":{"line":153,"column":4},"end":{"line":153,"column":4}},{"start":{"line":153,"column":4},"end":{"line":153,"column":4}}]}}},"./src/marionette.region.js":{"path":"./src/marionette.region.js","s":{"1":1,"2":132,"3":132,"4":132,"5":1,"6":1,"7":1,"8":131,"9":1,"10":1,"11":1,"12":104,"13":104,"14":104,"15":104,"16":104,"17":0,"18":104,"19":104,"20":22,"21":104,"22":80,"23":104,"24":2,"25":104,"26":40,"27":104,"28":62,"29":104,"30":104,"31":63,"32":34,"33":34,"34":33,"35":34,"36":104,"37":1,"38":81,"39":81,"40":81,"41":81,"42":75,"43":81,"44":81,"45":78,"46":81,"47":81,"48":81,"49":86,"50":76,"51":42,"52":75,"53":142,"54":142,"55":103,"56":39,"57":17,"58":22,"59":22,"60":39,"61":39,"62":3,"63":17,"64":17,"65":1},"b":{"1":[132,24],"2":[1,131],"3":[1,130],"4":[0,104],"5":[104,102,80],"6":[22,82],"7":[80,24],"8":[2,102],"9":[40,64],"10":[104,102],"11":[62,42],"12":[63,41],"13":[33,1],"14":[81,78],"15":[75,6],"16":[78,3],"17":[81,6],"18":[76,10],"19":[86,10],"20":[103,39],"21":[142,40],"22":[17,22],"23":[22,0]},"f":{"1":132,"2":104,"3":34,"4":81,"5":86,"6":42,"7":75,"8":142,"9":3,"10":17},"fnMap":{"1":{"name":"(anonymous_1)","line":7,"loc":{"start":{"line":7,"column":20},"end":{"line":7,"column":37}}},"2":{"name":"(anonymous_2)","line":44,"loc":{"start":{"line":44,"column":15},"end":{"line":44,"column":56}}},"3":{"name":"(anonymous_3)","line":94,"loc":{"start":{"line":94,"column":21},"end":{"line":94,"column":40}}},"4":{"name":"(anonymous_4)","line":118,"loc":{"start":{"line":118,"column":8},"end":{"line":118,"column":22}}},"5":{"name":"(anonymous_5)","line":142,"loc":{"start":{"line":142,"column":12},"end":{"line":142,"column":22}}},"6":{"name":"(anonymous_6)","line":150,"loc":{"start":{"line":150,"column":9},"end":{"line":150,"column":27}}},"7":{"name":"(anonymous_7)","line":156,"loc":{"start":{"line":156,"column":8},"end":{"line":156,"column":22}}},"8":{"name":"(anonymous_8)","line":162,"loc":{"start":{"line":162,"column":9},"end":{"line":162,"column":19}}},"9":{"name":"(anonymous_9)","line":179,"loc":{"start":{"line":179,"column":14},"end":{"line":179,"column":28}}},"10":{"name":"(anonymous_10)","line":187,"loc":{"start":{"line":187,"column":9},"end":{"line":187,"column":19}}}},"statementMap":{"1":{"start":{"line":7,"column":0},"end":{"line":22,"column":2}},"2":{"start":{"line":8,"column":2},"end":{"line":8,"column":31}},"3":{"start":{"line":10,"column":2},"end":{"line":10,"column":45}},"4":{"start":{"line":12,"column":2},"end":{"line":16,"column":3}},"5":{"start":{"line":13,"column":4},"end":{"line":13,"column":67}},"6":{"start":{"line":14,"column":4},"end":{"line":14,"column":27}},"7":{"start":{"line":15,"column":4},"end":{"line":15,"column":14}},"8":{"start":{"line":18,"column":2},"end":{"line":21,"column":3}},"9":{"start":{"line":19,"column":4},"end":{"line":19,"column":54}},"10":{"start":{"line":20,"column":4},"end":{"line":20,"column":38}},"11":{"start":{"line":28,"column":0},"end":{"line":106,"column":3}},"12":{"start":{"line":46,"column":4},"end":{"line":46,"column":60}},"13":{"start":{"line":47,"column":4},"end":{"line":47,"column":77}},"14":{"start":{"line":48,"column":4},"end":{"line":48,"column":81}},"15":{"start":{"line":49,"column":4},"end":{"line":49,"column":60}},"16":{"start":{"line":51,"column":4},"end":{"line":53,"column":5}},"17":{"start":{"line":52,"column":6},"end":{"line":52,"column":122}},"18":{"start":{"line":55,"column":4},"end":{"line":55,"column":29}},"19":{"start":{"line":59,"column":4},"end":{"line":61,"column":5}},"20":{"start":{"line":60,"column":6},"end":{"line":60,"column":30}},"21":{"start":{"line":63,"column":4},"end":{"line":65,"column":5}},"22":{"start":{"line":64,"column":6},"end":{"line":64,"column":39}},"23":{"start":{"line":69,"column":4},"end":{"line":71,"column":5}},"24":{"start":{"line":70,"column":6},"end":{"line":70,"column":32}},"25":{"start":{"line":73,"column":4},"end":{"line":75,"column":5}},"26":{"start":{"line":74,"column":6},"end":{"line":74,"column":37}},"27":{"start":{"line":77,"column":4},"end":{"line":79,"column":5}},"28":{"start":{"line":78,"column":6},"end":{"line":78,"column":43}},"29":{"start":{"line":82,"column":4},"end":{"line":84,"column":7}},"30":{"start":{"line":92,"column":4},"end":{"line":101,"column":5}},"31":{"start":{"line":94,"column":6},"end":{"line":100,"column":8}},"32":{"start":{"line":95,"column":8},"end":{"line":95,"column":45}},"33":{"start":{"line":96,"column":8},"end":{"line":98,"column":9}},"34":{"start":{"line":97,"column":10},"end":{"line":97,"column":32}},"35":{"start":{"line":99,"column":8},"end":{"line":99,"column":39}},"36":{"start":{"line":103,"column":4},"end":{"line":103,"column":18}},"37":{"start":{"line":111,"column":0},"end":{"line":191,"column":3}},"38":{"start":{"line":120,"column":4},"end":{"line":120,"column":20}},"39":{"start":{"line":122,"column":4},"end":{"line":122,"column":64}},"40":{"start":{"line":124,"column":4},"end":{"line":124,"column":52}},"41":{"start":{"line":126,"column":4},"end":{"line":128,"column":5}},"42":{"start":{"line":127,"column":6},"end":{"line":127,"column":19}},"43":{"start":{"line":130,"column":4},"end":{"line":130,"column":18}},"44":{"start":{"line":132,"column":4},"end":{"line":134,"column":5}},"45":{"start":{"line":133,"column":6},"end":{"line":133,"column":22}},"46":{"start":{"line":136,"column":4},"end":{"line":136,"column":28}},"47":{"start":{"line":138,"column":4},"end":{"line":138,"column":54}},"48":{"start":{"line":139,"column":4},"end":{"line":139,"column":48}},"49":{"start":{"line":143,"column":4},"end":{"line":145,"column":5}},"50":{"start":{"line":144,"column":6},"end":{"line":144,"column":37}},"51":{"start":{"line":151,"column":4},"end":{"line":151,"column":34}},"52":{"start":{"line":157,"column":4},"end":{"line":157,"column":37}},"53":{"start":{"line":163,"column":4},"end":{"line":163,"column":32}},"54":{"start":{"line":164,"column":4},"end":{"line":164,"column":42}},"55":{"start":{"line":164,"column":33},"end":{"line":164,"column":40}},"56":{"start":{"line":167,"column":4},"end":{"line":168,"column":44}},"57":{"start":{"line":167,"column":22},"end":{"line":167,"column":35}},"58":{"start":{"line":168,"column":9},"end":{"line":168,"column":44}},"59":{"start":{"line":168,"column":28},"end":{"line":168,"column":42}},"60":{"start":{"line":170,"column":4},"end":{"line":170,"column":55}},"61":{"start":{"line":172,"column":4},"end":{"line":172,"column":28}},"62":{"start":{"line":180,"column":4},"end":{"line":180,"column":28}},"63":{"start":{"line":188,"column":4},"end":{"line":188,"column":17}},"64":{"start":{"line":189,"column":4},"end":{"line":189,"column":20}},"65":{"start":{"line":194,"column":0},"end":{"line":194,"column":45}}},"branchMap":{"1":{"line":8,"type":"binary-expr","locations":[{"start":{"line":8,"column":17},"end":{"line":8,"column":24}},{"start":{"line":8,"column":28},"end":{"line":8,"column":30}}]},"2":{"line":12,"type":"if","locations":[{"start":{"line":12,"column":2},"end":{"line":12,"column":2}},{"start":{"line":12,"column":2},"end":{"line":12,"column":2}}]},"3":{"line":18,"type":"if","locations":[{"start":{"line":18,"column":2},"end":{"line":18,"column":2}},{"start":{"line":18,"column":2},"end":{"line":18,"column":2}}]},"4":{"line":51,"type":"if","locations":[{"start":{"line":51,"column":4},"end":{"line":51,"column":4}},{"start":{"line":51,"column":4},"end":{"line":51,"column":4}}]},"5":{"line":51,"type":"binary-expr","locations":[{"start":{"line":51,"column":8},"end":{"line":51,"column":21}},{"start":{"line":51,"column":25},"end":{"line":51,"column":40}},{"start":{"line":51,"column":44},"end":{"line":51,"column":67}}]},"6":{"line":59,"type":"if","locations":[{"start":{"line":59,"column":4},"end":{"line":59,"column":4}},{"start":{"line":59,"column":4},"end":{"line":59,"column":4}}]},"7":{"line":63,"type":"if","locations":[{"start":{"line":63,"column":4},"end":{"line":63,"column":4}},{"start":{"line":63,"column":4},"end":{"line":63,"column":4}}]},"8":{"line":69,"type":"if","locations":[{"start":{"line":69,"column":4},"end":{"line":69,"column":4}},{"start":{"line":69,"column":4},"end":{"line":69,"column":4}}]},"9":{"line":73,"type":"if","locations":[{"start":{"line":73,"column":4},"end":{"line":73,"column":4}},{"start":{"line":73,"column":4},"end":{"line":73,"column":4}}]},"10":{"line":73,"type":"binary-expr","locations":[{"start":{"line":73,"column":8},"end":{"line":73,"column":21}},{"start":{"line":73,"column":25},"end":{"line":73,"column":46}}]},"11":{"line":77,"type":"if","locations":[{"start":{"line":77,"column":4},"end":{"line":77,"column":4}},{"start":{"line":77,"column":4},"end":{"line":77,"column":4}}]},"12":{"line":92,"type":"if","locations":[{"start":{"line":92,"column":4},"end":{"line":92,"column":4}},{"start":{"line":92,"column":4},"end":{"line":92,"column":4}}]},"13":{"line":96,"type":"if","locations":[{"start":{"line":96,"column":8},"end":{"line":96,"column":8}},{"start":{"line":96,"column":8},"end":{"line":96,"column":8}}]},"14":{"line":122,"type":"binary-expr","locations":[{"start":{"line":122,"column":23},"end":{"line":122,"column":36}},{"start":{"line":122,"column":40},"end":{"line":122,"column":63}}]},"15":{"line":126,"type":"if","locations":[{"start":{"line":126,"column":4},"end":{"line":126,"column":4}},{"start":{"line":126,"column":4},"end":{"line":126,"column":4}}]},"16":{"line":132,"type":"if","locations":[{"start":{"line":132,"column":4},"end":{"line":132,"column":4}},{"start":{"line":132,"column":4},"end":{"line":132,"column":4}}]},"17":{"line":132,"type":"binary-expr","locations":[{"start":{"line":132,"column":8},"end":{"line":132,"column":23}},{"start":{"line":132,"column":27},"end":{"line":132,"column":39}}]},"18":{"line":143,"type":"if","locations":[{"start":{"line":143,"column":4},"end":{"line":143,"column":4}},{"start":{"line":143,"column":4},"end":{"line":143,"column":4}}]},"19":{"line":143,"type":"binary-expr","locations":[{"start":{"line":143,"column":8},"end":{"line":143,"column":17}},{"start":{"line":143,"column":21},"end":{"line":143,"column":42}}]},"20":{"line":164,"type":"if","locations":[{"start":{"line":164,"column":4},"end":{"line":164,"column":4}},{"start":{"line":164,"column":4},"end":{"line":164,"column":4}}]},"21":{"line":164,"type":"binary-expr","locations":[{"start":{"line":164,"column":8},"end":{"line":164,"column":13}},{"start":{"line":164,"column":17},"end":{"line":164,"column":30}}]},"22":{"line":167,"type":"if","locations":[{"start":{"line":167,"column":4},"end":{"line":167,"column":4}},{"start":{"line":167,"column":4},"end":{"line":167,"column":4}}]},"23":{"line":168,"type":"if","locations":[{"start":{"line":168,"column":9},"end":{"line":168,"column":9}},{"start":{"line":168,"column":9},"end":{"line":168,"column":9}}]}}},"./src/marionette.regionManager.js":{"path":"./src/marionette.regionManager.js","s":{"1":1,"2":1,"3":167,"4":167,"5":64,"6":64,"7":82,"8":65,"9":82,"10":78,"11":82,"12":82,"13":64,"14":110,"15":110,"16":110,"17":110,"18":110,"19":102,"20":8,"21":2,"22":6,"23":110,"24":110,"25":110,"26":17,"27":10,"28":10,"29":11,"30":18,"31":15,"32":19,"33":8,"34":8,"35":8,"36":110,"37":110,"38":28,"39":28,"40":28,"41":28,"42":138,"43":1,"44":1,"45":23,"46":13,"47":13,"48":13,"49":1},"b":{"1":[65,17],"2":[78,4],"3":[102,8],"4":[110,88,88],"5":[2,6]},"f":{"1":1,"2":167,"3":64,"4":82,"5":110,"6":17,"7":10,"8":11,"9":18,"10":15,"11":19,"12":8,"13":110,"14":28,"15":138,"16":23,"17":13},"fnMap":{"1":{"name":"(anonymous_1)","line":5,"loc":{"start":{"line":5,"column":28},"end":{"line":5,"column":48}}},"2":{"name":"(anonymous_2)","line":8,"loc":{"start":{"line":8,"column":17},"end":{"line":8,"column":34}}},"3":{"name":"(anonymous_3)","line":16,"loc":{"start":{"line":16,"column":16},"end":{"line":16,"column":53}}},"4":{"name":"(anonymous_4)","line":19,"loc":{"start":{"line":19,"column":32},"end":{"line":19,"column":58}}},"5":{"name":"(anonymous_5)","line":37,"loc":{"start":{"line":37,"column":15},"end":{"line":37,"column":41}}},"6":{"name":"(anonymous_6)","line":58,"loc":{"start":{"line":58,"column":9},"end":{"line":58,"column":23}}},"7":{"name":"(anonymous_7)","line":63,"loc":{"start":{"line":63,"column":18},"end":{"line":63,"column":32}}},"8":{"name":"(anonymous_8)","line":70,"loc":{"start":{"line":70,"column":19},"end":{"line":70,"column":29}}},"9":{"name":"(anonymous_9)","line":71,"loc":{"start":{"line":71,"column":28},"end":{"line":71,"column":50}}},"10":{"name":"(anonymous_10)","line":78,"loc":{"start":{"line":78,"column":18},"end":{"line":78,"column":28}}},"11":{"name":"(anonymous_11)","line":79,"loc":{"start":{"line":79,"column":28},"end":{"line":79,"column":50}}},"12":{"name":"(anonymous_12)","line":86,"loc":{"start":{"line":86,"column":11},"end":{"line":86,"column":21}}},"13":{"name":"(anonymous_13)","line":93,"loc":{"start":{"line":93,"column":12},"end":{"line":93,"column":34}}},"14":{"name":"(anonymous_14)","line":99,"loc":{"start":{"line":99,"column":13},"end":{"line":99,"column":35}}},"15":{"name":"(anonymous_15)","line":107,"loc":{"start":{"line":107,"column":16},"end":{"line":107,"column":26}}},"16":{"name":"(anonymous_16)","line":123,"loc":{"start":{"line":123,"column":18},"end":{"line":123,"column":35}}},"17":{"name":"(anonymous_17)","line":124,"loc":{"start":{"line":124,"column":38},"end":{"line":124,"column":49}}}},"statementMap":{"1":{"start":{"line":5,"column":0},"end":{"line":132,"column":15}},"2":{"start":{"line":7,"column":2},"end":{"line":111,"column":5}},"3":{"start":{"line":9,"column":6},"end":{"line":9,"column":25}},"4":{"start":{"line":10,"column":6},"end":{"line":10,"column":70}},"5":{"start":{"line":17,"column":6},"end":{"line":17,"column":23}},"6":{"start":{"line":19,"column":6},"end":{"line":30,"column":15}},"7":{"start":{"line":20,"column":8},"end":{"line":22,"column":9}},"8":{"start":{"line":21,"column":10},"end":{"line":21,"column":48}},"9":{"start":{"line":24,"column":8},"end":{"line":26,"column":9}},"10":{"start":{"line":25,"column":10},"end":{"line":25,"column":60}},"11":{"start":{"line":28,"column":8},"end":{"line":28,"column":54}},"12":{"start":{"line":29,"column":8},"end":{"line":29,"column":31}},"13":{"start":{"line":32,"column":6},"end":{"line":32,"column":21}},"14":{"start":{"line":38,"column":6},"end":{"line":38,"column":17}},"15":{"start":{"line":40,"column":6},"end":{"line":40,"column":44}},"16":{"start":{"line":41,"column":6},"end":{"line":41,"column":44}},"17":{"start":{"line":42,"column":6},"end":{"line":42,"column":46}},"18":{"start":{"line":44,"column":6},"end":{"line":50,"column":7}},"19":{"start":{"line":45,"column":8},"end":{"line":45,"column":78}},"20":{"start":{"line":46,"column":13},"end":{"line":50,"column":7}},"21":{"start":{"line":47,"column":8},"end":{"line":47,"column":78}},"22":{"start":{"line":49,"column":8},"end":{"line":49,"column":28}},"23":{"start":{"line":52,"column":6},"end":{"line":52,"column":32}},"24":{"start":{"line":53,"column":6},"end":{"line":53,"column":53}},"25":{"start":{"line":54,"column":6},"end":{"line":54,"column":20}},"26":{"start":{"line":59,"column":6},"end":{"line":59,"column":33}},"27":{"start":{"line":64,"column":6},"end":{"line":64,"column":39}},"28":{"start":{"line":65,"column":6},"end":{"line":65,"column":33}},"29":{"start":{"line":71,"column":6},"end":{"line":73,"column":15}},"30":{"start":{"line":72,"column":8},"end":{"line":72,"column":35}},"31":{"start":{"line":79,"column":6},"end":{"line":81,"column":15}},"32":{"start":{"line":80,"column":8},"end":{"line":80,"column":23}},"33":{"start":{"line":87,"column":6},"end":{"line":87,"column":27}},"34":{"start":{"line":88,"column":6},"end":{"line":88,"column":55}},"35":{"start":{"line":89,"column":6},"end":{"line":89,"column":62}},"36":{"start":{"line":94,"column":6},"end":{"line":94,"column":35}},"37":{"start":{"line":95,"column":6},"end":{"line":95,"column":24}},"38":{"start":{"line":100,"column":6},"end":{"line":100,"column":21}},"39":{"start":{"line":101,"column":6},"end":{"line":101,"column":33}},"40":{"start":{"line":102,"column":6},"end":{"line":102,"column":24}},"41":{"start":{"line":103,"column":6},"end":{"line":103,"column":56}},"42":{"start":{"line":108,"column":6},"end":{"line":108,"column":42}},"43":{"start":{"line":118,"column":2},"end":{"line":121,"column":43}},"44":{"start":{"line":123,"column":2},"end":{"line":129,"column":5}},"45":{"start":{"line":124,"column":4},"end":{"line":128,"column":6}},"46":{"start":{"line":125,"column":6},"end":{"line":125,"column":44}},"47":{"start":{"line":126,"column":6},"end":{"line":126,"column":56}},"48":{"start":{"line":127,"column":6},"end":{"line":127,"column":38}},"49":{"start":{"line":131,"column":2},"end":{"line":131,"column":23}}},"branchMap":{"1":{"line":20,"type":"if","locations":[{"start":{"line":20,"column":8},"end":{"line":20,"column":8}},{"start":{"line":20,"column":8},"end":{"line":20,"column":8}}]},"2":{"line":24,"type":"if","locations":[{"start":{"line":24,"column":8},"end":{"line":24,"column":8}},{"start":{"line":24,"column":8},"end":{"line":24,"column":8}}]},"3":{"line":44,"type":"if","locations":[{"start":{"line":44,"column":6},"end":{"line":44,"column":6}},{"start":{"line":44,"column":6},"end":{"line":44,"column":6}}]},"4":{"line":44,"type":"binary-expr","locations":[{"start":{"line":44,"column":10},"end":{"line":44,"column":18}},{"start":{"line":44,"column":23},"end":{"line":44,"column":31}},{"start":{"line":44,"column":35},"end":{"line":44,"column":46}}]},"5":{"line":46,"type":"if","locations":[{"start":{"line":46,"column":13},"end":{"line":46,"column":13}},{"start":{"line":46,"column":13},"end":{"line":46,"column":13}}]}}},"./src/marionette.layout.js":{"path":"./src/marionette.layout.js","s":{"1":1,"2":36,"3":36,"4":36,"5":36,"6":42,"7":2,"8":42,"9":29,"10":13,"11":12,"12":42,"13":42,"14":42,"15":5,"16":0,"17":5,"18":5,"19":5,"20":11,"21":11,"22":11,"23":38,"24":38,"25":4,"26":4,"27":49,"28":49,"29":32,"30":49,"31":38,"32":38,"33":38,"34":2,"35":36,"36":38,"37":12,"38":12,"39":15,"40":38,"41":38,"42":59,"43":59,"44":38,"45":13,"46":13},"b":{"1":[36,20],"2":[2,40],"3":[29,13],"4":[12,1],"5":[0,5],"6":[2,36],"7":[36,13]},"f":{"1":36,"2":42,"3":5,"4":11,"5":38,"6":4,"7":49,"8":32,"9":38,"10":12,"11":15,"12":38,"13":59,"14":13},"fnMap":{"1":{"name":"(anonymous_1)","line":15,"loc":{"start":{"line":15,"column":15},"end":{"line":15,"column":34}}},"2":{"name":"(anonymous_2)","line":28,"loc":{"start":{"line":28,"column":10},"end":{"line":28,"column":20}}},"3":{"name":"(anonymous_3)","line":52,"loc":{"start":{"line":52,"column":9},"end":{"line":52,"column":21}}},"4":{"name":"(anonymous_4)","line":60,"loc":{"start":{"line":60,"column":13},"end":{"line":60,"column":39}}},"5":{"name":"(anonymous_5)","line":67,"loc":{"start":{"line":67,"column":14},"end":{"line":67,"column":31}}},"6":{"name":"(anonymous_6)","line":73,"loc":{"start":{"line":73,"column":16},"end":{"line":73,"column":30}}},"7":{"name":"(anonymous_7)","line":79,"loc":{"start":{"line":79,"column":17},"end":{"line":79,"column":34}}},"8":{"name":"(anonymous_8)","line":84,"loc":{"start":{"line":84,"column":16},"end":{"line":84,"column":26}}},"9":{"name":"(anonymous_9)","line":92,"loc":{"start":{"line":92,"column":22},"end":{"line":92,"column":41}}},"10":{"name":"(anonymous_10)","line":107,"loc":{"start":{"line":107,"column":24},"end":{"line":107,"column":34}}},"11":{"name":"(anonymous_11)","line":109,"loc":{"start":{"line":109,"column":28},"end":{"line":109,"column":44}}},"12":{"name":"(anonymous_12)","line":116,"loc":{"start":{"line":116,"column":22},"end":{"line":116,"column":32}}},"13":{"name":"(anonymous_13)","line":119,"loc":{"start":{"line":119,"column":52},"end":{"line":119,"column":74}}},"14":{"name":"(anonymous_14)","line":124,"loc":{"start":{"line":124,"column":55},"end":{"line":124,"column":77}}}},"statementMap":{"1":{"start":{"line":10,"column":0},"end":{"line":129,"column":3}},"2":{"start":{"line":16,"column":4},"end":{"line":16,"column":28}},"3":{"start":{"line":18,"column":4},"end":{"line":18,"column":29}},"4":{"start":{"line":19,"column":4},"end":{"line":19,"column":37}},"5":{"start":{"line":21,"column":4},"end":{"line":21,"column":66}},"6":{"start":{"line":30,"column":4},"end":{"line":34,"column":5}},"7":{"start":{"line":33,"column":6},"end":{"line":33,"column":32}},"8":{"start":{"line":35,"column":4},"end":{"line":43,"column":5}},"9":{"start":{"line":38,"column":6},"end":{"line":38,"column":32}},"10":{"start":{"line":39,"column":11},"end":{"line":43,"column":5}},"11":{"start":{"line":42,"column":6},"end":{"line":42,"column":34}},"12":{"start":{"line":45,"column":4},"end":{"line":45,"column":54}},"13":{"start":{"line":46,"column":4},"end":{"line":46,"column":72}},"14":{"start":{"line":48,"column":4},"end":{"line":48,"column":18}},"15":{"start":{"line":53,"column":4},"end":{"line":53,"column":33}},"16":{"start":{"line":53,"column":24},"end":{"line":53,"column":31}},"17":{"start":{"line":54,"column":4},"end":{"line":54,"column":31}},"18":{"start":{"line":55,"column":4},"end":{"line":55,"column":54}},"19":{"start":{"line":56,"column":4},"end":{"line":56,"column":58}},"20":{"start":{"line":61,"column":4},"end":{"line":61,"column":21}},"21":{"start":{"line":62,"column":4},"end":{"line":62,"column":31}},"22":{"start":{"line":63,"column":4},"end":{"line":63,"column":45}},"23":{"start":{"line":68,"column":4},"end":{"line":68,"column":55}},"24":{"start":{"line":69,"column":4},"end":{"line":69,"column":39}},"25":{"start":{"line":74,"column":4},"end":{"line":74,"column":30}},"26":{"start":{"line":75,"column":4},"end":{"line":75,"column":49}},"27":{"start":{"line":80,"column":4},"end":{"line":80,"column":20}},"28":{"start":{"line":82,"column":4},"end":{"line":85,"column":6}},"29":{"start":{"line":84,"column":28},"end":{"line":84,"column":44}},"30":{"start":{"line":87,"column":4},"end":{"line":87,"column":60}},"31":{"start":{"line":93,"column":4},"end":{"line":93,"column":16}},"32":{"start":{"line":94,"column":4},"end":{"line":94,"column":30}},"33":{"start":{"line":96,"column":4},"end":{"line":100,"column":5}},"34":{"start":{"line":97,"column":6},"end":{"line":97,"column":38}},"35":{"start":{"line":99,"column":6},"end":{"line":99,"column":35}},"36":{"start":{"line":102,"column":4},"end":{"line":102,"column":29}},"37":{"start":{"line":108,"column":4},"end":{"line":108,"column":38}},"38":{"start":{"line":109,"column":4},"end":{"line":111,"column":7}},"39":{"start":{"line":110,"column":6},"end":{"line":110,"column":21}},"40":{"start":{"line":117,"column":4},"end":{"line":117,"column":56}},"41":{"start":{"line":119,"column":4},"end":{"line":122,"column":7}},"42":{"start":{"line":120,"column":6},"end":{"line":120,"column":26}},"43":{"start":{"line":121,"column":6},"end":{"line":121,"column":47}},"44":{"start":{"line":124,"column":4},"end":{"line":127,"column":7}},"45":{"start":{"line":125,"column":6},"end":{"line":125,"column":24}},"46":{"start":{"line":126,"column":6},"end":{"line":126,"column":50}}},"branchMap":{"1":{"line":16,"type":"binary-expr","locations":[{"start":{"line":16,"column":14},"end":{"line":16,"column":21}},{"start":{"line":16,"column":25},"end":{"line":16,"column":27}}]},"2":{"line":30,"type":"if","locations":[{"start":{"line":30,"column":4},"end":{"line":30,"column":4}},{"start":{"line":30,"column":4},"end":{"line":30,"column":4}}]},"3":{"line":35,"type":"if","locations":[{"start":{"line":35,"column":4},"end":{"line":35,"column":4}},{"start":{"line":35,"column":4},"end":{"line":35,"column":4}}]},"4":{"line":39,"type":"if","locations":[{"start":{"line":39,"column":11},"end":{"line":39,"column":11}},{"start":{"line":39,"column":11},"end":{"line":39,"column":11}}]},"5":{"line":53,"type":"if","locations":[{"start":{"line":53,"column":4},"end":{"line":53,"column":4}},{"start":{"line":53,"column":4},"end":{"line":53,"column":4}}]},"6":{"line":96,"type":"if","locations":[{"start":{"line":96,"column":4},"end":{"line":96,"column":4}},{"start":{"line":96,"column":4},"end":{"line":96,"column":4}}]},"7":{"line":99,"type":"binary-expr","locations":[{"start":{"line":99,"column":16},"end":{"line":99,"column":28}},{"start":{"line":99,"column":32},"end":{"line":99,"column":34}}]}}},"./src/marionette.application.js":{"path":"./src/marionette.application.js","s":{"1":1,"2":101,"3":101,"4":101,"5":101,"6":101,"7":101,"8":101,"9":101,"10":1,"11":0,"12":0,"13":0,"14":0,"15":75,"16":36,"17":36,"18":36,"19":36,"20":10,"21":1,"22":2,"23":1,"24":140,"25":140,"26":140,"27":101,"28":101,"29":15,"30":101,"31":2,"32":1},"b":{},"f":{"1":101,"2":0,"3":0,"4":75,"5":36,"6":10,"7":1,"8":2,"9":1,"10":140,"11":101,"12":15,"13":2},"fnMap":{"1":{"name":"(anonymous_1)","line":7,"loc":{"start":{"line":7,"column":25},"end":{"line":7,"column":42}}},"2":{"name":"(anonymous_2)","line":22,"loc":{"start":{"line":22,"column":11},"end":{"line":22,"column":21}}},"3":{"name":"(anonymous_3)","line":28,"loc":{"start":{"line":28,"column":11},"end":{"line":28,"column":21}}},"4":{"name":"(anonymous_4)","line":36,"loc":{"start":{"line":36,"column":18},"end":{"line":36,"column":39}}},"5":{"name":"(anonymous_5)","line":43,"loc":{"start":{"line":43,"column":9},"end":{"line":43,"column":26}}},"6":{"name":"(anonymous_6)","line":55,"loc":{"start":{"line":55,"column":14},"end":{"line":55,"column":31}}},"7":{"name":"(anonymous_7)","line":60,"loc":{"start":{"line":60,"column":16},"end":{"line":60,"column":26}}},"8":{"name":"(anonymous_8)","line":67,"loc":{"start":{"line":67,"column":16},"end":{"line":67,"column":33}}},"9":{"name":"(anonymous_9)","line":74,"loc":{"start":{"line":74,"column":13},"end":{"line":74,"column":30}}},"10":{"name":"(anonymous_10)","line":79,"loc":{"start":{"line":79,"column":10},"end":{"line":79,"column":49}}},"11":{"name":"(anonymous_11)","line":90,"loc":{"start":{"line":90,"column":22},"end":{"line":90,"column":32}}},"12":{"name":"(anonymous_12)","line":93,"loc":{"start":{"line":93,"column":53},"end":{"line":93,"column":75}}},"13":{"name":"(anonymous_13)","line":97,"loc":{"start":{"line":97,"column":56},"end":{"line":97,"column":78}}}},"statementMap":{"1":{"start":{"line":7,"column":0},"end":{"line":18,"column":2}},"2":{"start":{"line":8,"column":2},"end":{"line":8,"column":28}},"3":{"start":{"line":9,"column":2},"end":{"line":9,"column":51}},"4":{"start":{"line":10,"column":2},"end":{"line":10,"column":51}},"5":{"start":{"line":11,"column":2},"end":{"line":11,"column":48}},"6":{"start":{"line":12,"column":2},"end":{"line":12,"column":53}},"7":{"start":{"line":13,"column":2},"end":{"line":13,"column":23}},"8":{"start":{"line":15,"column":2},"end":{"line":15,"column":26}},"9":{"start":{"line":17,"column":2},"end":{"line":17,"column":48}},"10":{"start":{"line":20,"column":0},"end":{"line":101,"column":3}},"11":{"start":{"line":23,"column":4},"end":{"line":23,"column":54}},"12":{"start":{"line":24,"column":4},"end":{"line":24,"column":53}},"13":{"start":{"line":29,"column":4},"end":{"line":29,"column":54}},"14":{"start":{"line":30,"column":4},"end":{"line":30,"column":56}},"15":{"start":{"line":37,"column":4},"end":{"line":37,"column":41}},"16":{"start":{"line":44,"column":4},"end":{"line":44,"column":53}},"17":{"start":{"line":45,"column":4},"end":{"line":45,"column":43}},"18":{"start":{"line":46,"column":4},"end":{"line":46,"column":52}},"19":{"start":{"line":48,"column":4},"end":{"line":48,"column":41}},"20":{"start":{"line":56,"column":4},"end":{"line":56,"column":51}},"21":{"start":{"line":61,"column":4},"end":{"line":61,"column":39}},"22":{"start":{"line":68,"column":4},"end":{"line":68,"column":45}},"23":{"start":{"line":75,"column":4},"end":{"line":75,"column":43}},"24":{"start":{"line":82,"column":4},"end":{"line":82,"column":32}},"25":{"start":{"line":83,"column":4},"end":{"line":83,"column":23}},"26":{"start":{"line":86,"column":4},"end":{"line":86,"column":67}},"27":{"start":{"line":91,"column":4},"end":{"line":91,"column":57}},"28":{"start":{"line":93,"column":4},"end":{"line":95,"column":7}},"29":{"start":{"line":94,"column":6},"end":{"line":94,"column":26}},"30":{"start":{"line":97,"column":4},"end":{"line":99,"column":7}},"31":{"start":{"line":98,"column":6},"end":{"line":98,"column":24}},"32":{"start":{"line":104,"column":0},"end":{"line":104,"column":50}}},"branchMap":{}},"./src/marionette.approuter.js":{"path":"./src/marionette.approuter.js","s":{"1":1,"2":13,"3":13,"4":13,"5":13,"6":13,"7":1,"8":1,"9":13,"10":2,"11":11,"12":11,"13":15,"14":14,"15":16,"16":16,"17":1,"18":15},"b":{"1":[13,3],"2":[2,11],"3":[1,15]},"f":{"1":13,"2":1,"3":13,"4":15,"5":14,"6":16},"fnMap":{"1":{"name":"(anonymous_1)","line":21,"loc":{"start":{"line":21,"column":15},"end":{"line":21,"column":32}}},"2":{"name":"(anonymous_2)","line":33,"loc":{"start":{"line":33,"column":12},"end":{"line":33,"column":40}}},"3":{"name":"(anonymous_3)","line":41,"loc":{"start":{"line":41,"column":20},"end":{"line":41,"column":52}}},"4":{"name":"(anonymous_4)","line":46,"loc":{"start":{"line":46,"column":23},"end":{"line":46,"column":39}}},"5":{"name":"(anonymous_5)","line":51,"loc":{"start":{"line":51,"column":18},"end":{"line":51,"column":28}}},"6":{"name":"(anonymous_6)","line":55,"loc":{"start":{"line":55,"column":16},"end":{"line":55,"column":55}}}},"statementMap":{"1":{"start":{"line":19,"column":0},"end":{"line":64,"column":3}},"2":{"start":{"line":22,"column":4},"end":{"line":22,"column":72}},"3":{"start":{"line":24,"column":4},"end":{"line":24,"column":33}},"4":{"start":{"line":26,"column":4},"end":{"line":26,"column":60}},"5":{"start":{"line":27,"column":4},"end":{"line":27,"column":43}},"6":{"start":{"line":28,"column":4},"end":{"line":28,"column":49}},"7":{"start":{"line":34,"column":4},"end":{"line":34,"column":43}},"8":{"start":{"line":35,"column":4},"end":{"line":35,"column":53}},"9":{"start":{"line":42,"column":4},"end":{"line":42,"column":30}},"10":{"start":{"line":42,"column":21},"end":{"line":42,"column":28}},"11":{"start":{"line":44,"column":4},"end":{"line":44,"column":49}},"12":{"start":{"line":46,"column":4},"end":{"line":48,"column":13}},"13":{"start":{"line":47,"column":6},"end":{"line":47,"column":61}},"14":{"start":{"line":52,"column":4},"end":{"line":52,"column":52}},"15":{"start":{"line":56,"column":4},"end":{"line":56,"column":40}},"16":{"start":{"line":58,"column":4},"end":{"line":60,"column":5}},"17":{"start":{"line":59,"column":6},"end":{"line":59,"column":85}},"18":{"start":{"line":62,"column":4},"end":{"line":62,"column":62}}},"branchMap":{"1":{"line":24,"type":"binary-expr","locations":[{"start":{"line":24,"column":19},"end":{"line":24,"column":26}},{"start":{"line":24,"column":30},"end":{"line":24,"column":32}}]},"2":{"line":42,"type":"if","locations":[{"start":{"line":42,"column":4},"end":{"line":42,"column":4}},{"start":{"line":42,"column":4},"end":{"line":42,"column":4}}]},"3":{"line":58,"type":"if","locations":[{"start":{"line":58,"column":4},"end":{"line":58,"column":4}},{"start":{"line":58,"column":4},"end":{"line":58,"column":4}}]}}},"./src/marionette.module.js":{"path":"./src/marionette.module.js","s":{"1":1,"2":132,"3":132,"4":132,"5":132,"6":132,"7":132,"8":1,"9":96,"10":14,"11":125,"12":28,"13":97,"14":33,"15":29,"16":97,"17":97,"18":97,"19":97,"20":16,"21":2,"22":14,"23":14,"24":14,"25":12,"26":14,"27":14,"28":14,"29":14,"30":81,"31":81,"32":0,"33":81,"34":81,"35":132,"36":132,"37":1,"38":140,"39":140,"40":140,"41":140,"42":140,"43":140,"44":140,"45":140,"46":193,"47":193,"48":193,"49":140,"50":193,"51":193,"52":132,"53":132,"54":132,"55":193,"56":193,"57":193,"58":193,"59":76,"60":76,"61":117,"62":6,"63":6,"64":111,"65":193,"66":81,"67":193,"68":193,"69":118,"70":118,"71":47,"72":45},"b":{"1":[28,97],"2":[29,4],"3":[2,14],"4":[0,81],"5":[132,61],"6":[76,117],"7":[6,111],"8":[81,112],"9":[193,175],"10":[118,75],"11":[193,169],"12":[45,2]},"f":{"1":132,"2":96,"3":14,"4":125,"5":33,"6":16,"7":12,"8":81,"9":81,"10":132,"11":140,"12":193,"13":193,"14":193,"15":47},"fnMap":{"1":{"name":"(anonymous_1)","line":6,"loc":{"start":{"line":6,"column":20},"end":{"line":6,"column":45}}},"2":{"name":"(anonymous_2)","line":27,"loc":{"start":{"line":27,"column":18},"end":{"line":27,"column":36}}},"3":{"name":"(anonymous_3)","line":34,"loc":{"start":{"line":34,"column":16},"end":{"line":34,"column":34}}},"4":{"name":"(anonymous_4)","line":39,"loc":{"start":{"line":39,"column":9},"end":{"line":39,"column":26}}},"5":{"name":"(anonymous_5)","line":44,"loc":{"start":{"line":44,"column":28},"end":{"line":44,"column":41}}},"6":{"name":"(anonymous_6)","line":62,"loc":{"start":{"line":62,"column":8},"end":{"line":62,"column":18}}},"7":{"name":"(anonymous_7)","line":71,"loc":{"start":{"line":71,"column":28},"end":{"line":71,"column":41}}},"8":{"name":"(anonymous_8)","line":85,"loc":{"start":{"line":85,"column":17},"end":{"line":85,"column":55}}},"9":{"name":"(anonymous_9)","line":91,"loc":{"start":{"line":91,"column":24},"end":{"line":91,"column":56}}},"10":{"name":"(anonymous_10)","line":110,"loc":{"start":{"line":110,"column":35},"end":{"line":110,"column":45}}},"11":{"name":"(anonymous_11)","line":120,"loc":{"start":{"line":120,"column":10},"end":{"line":120,"column":54}}},"12":{"name":"(anonymous_12)","line":137,"loc":{"start":{"line":137,"column":24},"end":{"line":137,"column":47}}},"13":{"name":"(anonymous_13)","line":147,"loc":{"start":{"line":147,"column":14},"end":{"line":147,"column":64}}},"14":{"name":"(anonymous_14)","line":162,"loc":{"start":{"line":162,"column":24},"end":{"line":162,"column":65}}},"15":{"name":"(anonymous_15)","line":197,"loc":{"start":{"line":197,"column":34},"end":{"line":197,"column":51}}}},"statementMap":{"1":{"start":{"line":6,"column":0},"end":{"line":19,"column":2}},"2":{"start":{"line":7,"column":2},"end":{"line":7,"column":31}},"3":{"start":{"line":10,"column":2},"end":{"line":10,"column":23}},"4":{"start":{"line":12,"column":2},"end":{"line":12,"column":41}},"5":{"start":{"line":15,"column":2},"end":{"line":15,"column":17}},"6":{"start":{"line":16,"column":2},"end":{"line":16,"column":30}},"7":{"start":{"line":18,"column":2},"end":{"line":18,"column":48}},"8":{"start":{"line":23,"column":0},"end":{"line":114,"column":3}},"9":{"start":{"line":28,"column":4},"end":{"line":28,"column":45}},"10":{"start":{"line":35,"column":4},"end":{"line":35,"column":43}},"11":{"start":{"line":41,"column":4},"end":{"line":41,"column":39}},"12":{"start":{"line":41,"column":30},"end":{"line":41,"column":37}},"13":{"start":{"line":44,"column":4},"end":{"line":49,"column":7}},"14":{"start":{"line":46,"column":6},"end":{"line":48,"column":7}},"15":{"start":{"line":47,"column":8},"end":{"line":47,"column":27}},"16":{"start":{"line":52,"column":4},"end":{"line":52,"column":48}},"17":{"start":{"line":54,"column":4},"end":{"line":54,"column":50}},"18":{"start":{"line":55,"column":4},"end":{"line":55,"column":31}},"19":{"start":{"line":57,"column":4},"end":{"line":57,"column":41}},"20":{"start":{"line":64,"column":4},"end":{"line":64,"column":40}},"21":{"start":{"line":64,"column":31},"end":{"line":64,"column":38}},"22":{"start":{"line":65,"column":4},"end":{"line":65,"column":32}},"23":{"start":{"line":67,"column":4},"end":{"line":67,"column":55}},"24":{"start":{"line":71,"column":4},"end":{"line":71,"column":58}},"25":{"start":{"line":71,"column":43},"end":{"line":71,"column":54}},"26":{"start":{"line":74,"column":4},"end":{"line":74,"column":49}},"27":{"start":{"line":77,"column":4},"end":{"line":77,"column":39}},"28":{"start":{"line":78,"column":4},"end":{"line":78,"column":37}},"29":{"start":{"line":80,"column":4},"end":{"line":80,"column":48}},"30":{"start":{"line":86,"column":4},"end":{"line":86,"column":60}},"31":{"start":{"line":92,"column":4},"end":{"line":92,"column":31}},"32":{"start":{"line":92,"column":22},"end":{"line":92,"column":29}},"33":{"start":{"line":95,"column":4},"end":{"line":102,"column":7}},"34":{"start":{"line":104,"column":4},"end":{"line":104,"column":33}},"35":{"start":{"line":111,"column":4},"end":{"line":111,"column":60}},"36":{"start":{"line":112,"column":4},"end":{"line":112,"column":58}},"37":{"start":{"line":117,"column":0},"end":{"line":206,"column":3}},"38":{"start":{"line":121,"column":4},"end":{"line":121,"column":21}},"39":{"start":{"line":125,"column":4},"end":{"line":125,"column":38}},"40":{"start":{"line":126,"column":4},"end":{"line":126,"column":28}},"41":{"start":{"line":129,"column":4},"end":{"line":129,"column":41}},"42":{"start":{"line":130,"column":4},"end":{"line":130,"column":36}},"43":{"start":{"line":133,"column":4},"end":{"line":133,"column":31}},"44":{"start":{"line":134,"column":4},"end":{"line":134,"column":51}},"45":{"start":{"line":137,"column":4},"end":{"line":141,"column":13}},"46":{"start":{"line":138,"column":6},"end":{"line":138,"column":32}},"47":{"start":{"line":139,"column":6},"end":{"line":139,"column":62}},"48":{"start":{"line":140,"column":6},"end":{"line":140,"column":88}},"49":{"start":{"line":144,"column":4},"end":{"line":144,"column":18}},"50":{"start":{"line":149,"column":4},"end":{"line":149,"column":42}},"51":{"start":{"line":151,"column":4},"end":{"line":157,"column":5}},"52":{"start":{"line":153,"column":6},"end":{"line":153,"column":54}},"53":{"start":{"line":154,"column":6},"end":{"line":154,"column":40}},"54":{"start":{"line":156,"column":6},"end":{"line":156,"column":51}},"55":{"start":{"line":159,"column":4},"end":{"line":159,"column":18}},"56":{"start":{"line":163,"column":4},"end":{"line":163,"column":11}},"57":{"start":{"line":164,"column":4},"end":{"line":164,"column":24}},"58":{"start":{"line":166,"column":4},"end":{"line":179,"column":5}},"59":{"start":{"line":168,"column":6},"end":{"line":168,"column":15}},"60":{"start":{"line":169,"column":6},"end":{"line":169,"column":29}},"61":{"start":{"line":171,"column":11},"end":{"line":179,"column":5}},"62":{"start":{"line":173,"column":6},"end":{"line":173,"column":22}},"63":{"start":{"line":174,"column":6},"end":{"line":174,"column":44}},"64":{"start":{"line":178,"column":6},"end":{"line":178,"column":29}},"65":{"start":{"line":182,"column":4},"end":{"line":184,"column":5}},"66":{"start":{"line":183,"column":6},"end":{"line":183,"column":37}},"67":{"start":{"line":188,"column":4},"end":{"line":188,"column":71}},"68":{"start":{"line":191,"column":4},"end":{"line":203,"column":5}},"69":{"start":{"line":194,"column":6},"end":{"line":194,"column":48}},"70":{"start":{"line":197,"column":6},"end":{"line":201,"column":9}},"71":{"start":{"line":198,"column":8},"end":{"line":200,"column":9}},"72":{"start":{"line":199,"column":10},"end":{"line":199,"column":32}}},"branchMap":{"1":{"line":41,"type":"if","locations":[{"start":{"line":41,"column":4},"end":{"line":41,"column":4}},{"start":{"line":41,"column":4},"end":{"line":41,"column":4}}]},"2":{"line":46,"type":"if","locations":[{"start":{"line":46,"column":6},"end":{"line":46,"column":6}},{"start":{"line":46,"column":6},"end":{"line":46,"column":6}}]},"3":{"line":64,"type":"if","locations":[{"start":{"line":64,"column":4},"end":{"line":64,"column":4}},{"start":{"line":64,"column":4},"end":{"line":64,"column":4}}]},"4":{"line":92,"type":"if","locations":[{"start":{"line":92,"column":4},"end":{"line":92,"column":4}},{"start":{"line":92,"column":4},"end":{"line":92,"column":4}}]},"5":{"line":151,"type":"if","locations":[{"start":{"line":151,"column":4},"end":{"line":151,"column":4}},{"start":{"line":151,"column":4},"end":{"line":151,"column":4}}]},"6":{"line":166,"type":"if","locations":[{"start":{"line":166,"column":4},"end":{"line":166,"column":4}},{"start":{"line":166,"column":4},"end":{"line":166,"column":4}}]},"7":{"line":171,"type":"if","locations":[{"start":{"line":171,"column":11},"end":{"line":171,"column":11}},{"start":{"line":171,"column":11},"end":{"line":171,"column":11}}]},"8":{"line":182,"type":"if","locations":[{"start":{"line":182,"column":4},"end":{"line":182,"column":4}},{"start":{"line":182,"column":4},"end":{"line":182,"column":4}}]},"9":{"line":188,"type":"binary-expr","locations":[{"start":{"line":188,"column":29},"end":{"line":188,"column":51}},{"start":{"line":188,"column":55},"end":{"line":188,"column":70}}]},"10":{"line":191,"type":"if","locations":[{"start":{"line":191,"column":4},"end":{"line":191,"column":4}},{"start":{"line":191,"column":4},"end":{"line":191,"column":4}}]},"11":{"line":191,"type":"binary-expr","locations":[{"start":{"line":191,"column":8},"end":{"line":191,"column":30}},{"start":{"line":191,"column":34},"end":{"line":191,"column":69}}]},"12":{"line":198,"type":"if","locations":[{"start":{"line":198,"column":8},"end":{"line":198,"column":8}},{"start":{"line":198,"column":8},"end":{"line":198,"column":8}}]}}},"./src/marionette.templatecache.js":{"path":"./src/marionette.templatecache.js","s":{"1":1,"2":30,"3":1,"4":141,"5":141,"6":30,"7":30,"8":141,"9":6,"10":6,"11":6,"12":6,"13":4,"14":6,"15":2,"16":1,"17":141,"18":111,"19":30,"20":30,"21":30,"22":30,"23":30,"24":0,"25":30,"26":30},"b":{"1":[30,111],"2":[4,2],"3":[111,30],"4":[0,30],"5":[30,30]},"f":{"1":30,"2":141,"3":6,"4":141,"5":30,"6":30},"fnMap":{"1":{"name":"(anonymous_1)","line":6,"loc":{"start":{"line":6,"column":27},"end":{"line":6,"column":47}}},"2":{"name":"(anonymous_2)","line":19,"loc":{"start":{"line":19,"column":7},"end":{"line":19,"column":27}}},"3":{"name":"(anonymous_3)","line":37,"loc":{"start":{"line":37,"column":9},"end":{"line":37,"column":19}}},"4":{"name":"(anonymous_4)","line":58,"loc":{"start":{"line":58,"column":8},"end":{"line":58,"column":18}}},"5":{"name":"(anonymous_5)","line":76,"loc":{"start":{"line":76,"column":16},"end":{"line":76,"column":36}}},"6":{"name":"(anonymous_6)","line":90,"loc":{"start":{"line":90,"column":19},"end":{"line":90,"column":40}}}},"statementMap":{"1":{"start":{"line":6,"column":0},"end":{"line":8,"column":2}},"2":{"start":{"line":7,"column":2},"end":{"line":7,"column":31}},"3":{"start":{"line":13,"column":0},"end":{"line":50,"column":3}},"4":{"start":{"line":20,"column":4},"end":{"line":20,"column":57}},"5":{"start":{"line":22,"column":4},"end":{"line":25,"column":5}},"6":{"start":{"line":23,"column":6},"end":{"line":23,"column":64}},"7":{"start":{"line":24,"column":6},"end":{"line":24,"column":55}},"8":{"start":{"line":27,"column":4},"end":{"line":27,"column":33}},"9":{"start":{"line":38,"column":4},"end":{"line":38,"column":10}},"10":{"start":{"line":39,"column":4},"end":{"line":39,"column":32}},"11":{"start":{"line":40,"column":4},"end":{"line":40,"column":29}},"12":{"start":{"line":42,"column":4},"end":{"line":48,"column":5}},"13":{"start":{"line":43,"column":6},"end":{"line":45,"column":7}},"14":{"start":{"line":44,"column":8},"end":{"line":44,"column":44}},"15":{"start":{"line":47,"column":6},"end":{"line":47,"column":31}},"16":{"start":{"line":55,"column":0},"end":{"line":93,"column":3}},"17":{"start":{"line":60,"column":4},"end":{"line":62,"column":5}},"18":{"start":{"line":61,"column":6},"end":{"line":61,"column":35}},"19":{"start":{"line":65,"column":4},"end":{"line":65,"column":54}},"20":{"start":{"line":66,"column":4},"end":{"line":66,"column":59}},"21":{"start":{"line":68,"column":4},"end":{"line":68,"column":33}},"22":{"start":{"line":77,"column":4},"end":{"line":77,"column":51}},"23":{"start":{"line":79,"column":4},"end":{"line":81,"column":5}},"24":{"start":{"line":80,"column":6},"end":{"line":80,"column":85}},"25":{"start":{"line":83,"column":4},"end":{"line":83,"column":20}},"26":{"start":{"line":91,"column":4},"end":{"line":91,"column":35}}},"branchMap":{"1":{"line":22,"type":"if","locations":[{"start":{"line":22,"column":4},"end":{"line":22,"column":4}},{"start":{"line":22,"column":4},"end":{"line":22,"column":4}}]},"2":{"line":42,"type":"if","locations":[{"start":{"line":42,"column":4},"end":{"line":42,"column":4}},{"start":{"line":42,"column":4},"end":{"line":42,"column":4}}]},"3":{"line":60,"type":"if","locations":[{"start":{"line":60,"column":4},"end":{"line":60,"column":4}},{"start":{"line":60,"column":4},"end":{"line":60,"column":4}}]},"4":{"line":79,"type":"if","locations":[{"start":{"line":79,"column":4},"end":{"line":79,"column":4}},{"start":{"line":79,"column":4},"end":{"line":79,"column":4}}]},"5":{"line":79,"type":"binary-expr","locations":[{"start":{"line":79,"column":8},"end":{"line":79,"column":17}},{"start":{"line":79,"column":21},"end":{"line":79,"column":42}}]}}},"./src/marionette.renderer.js":{"path":"./src/marionette.renderer.js","s":{"1":1,"2":176,"3":3,"4":3,"5":3,"6":173,"7":173,"8":49,"9":124,"10":173},"b":{"1":[3,173],"2":[49,124]},"f":{"1":176},"fnMap":{"1":{"name":"(anonymous_1)","line":12,"loc":{"start":{"line":12,"column":10},"end":{"line":12,"column":34}}}},"statementMap":{"1":{"start":{"line":6,"column":0},"end":{"line":29,"column":2}},"2":{"start":{"line":14,"column":4},"end":{"line":18,"column":5}},"3":{"start":{"line":15,"column":6},"end":{"line":15,"column":95}},"4":{"start":{"line":16,"column":6},"end":{"line":16,"column":43}},"5":{"start":{"line":17,"column":6},"end":{"line":17,"column":18}},"6":{"start":{"line":20,"column":4},"end":{"line":20,"column":21}},"7":{"start":{"line":21,"column":4},"end":{"line":25,"column":5}},"8":{"start":{"line":22,"column":6},"end":{"line":22,"column":30}},"9":{"start":{"line":24,"column":6},"end":{"line":24,"column":60}},"10":{"start":{"line":27,"column":4},"end":{"line":27,"column":30}}},"branchMap":{"1":{"line":14,"type":"if","locations":[{"start":{"line":14,"column":4},"end":{"line":14,"column":4}},{"start":{"line":14,"column":4},"end":{"line":14,"column":4}}]},"2":{"line":21,"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":21,"column":4}},{"start":{"line":21,"column":4},"end":{"line":21,"column":4}}]}}},"./src/marionette.callbacks.js":{"path":"./src/marionette.callbacks.js","s":{"1":1,"2":374,"3":374,"4":1,"5":235,"6":235,"7":120,"8":1,"9":120,"10":158,"11":30,"12":30,"13":30,"14":30,"15":35},"b":{"1":[1,119]},"f":{"1":374,"2":235,"3":120,"4":158,"5":30,"6":35},"fnMap":{"1":{"name":"(anonymous_1)","line":7,"loc":{"start":{"line":7,"column":23},"end":{"line":7,"column":33}}},"2":{"name":"(anonymous_2)","line":17,"loc":{"start":{"line":17,"column":7},"end":{"line":17,"column":42}}},"3":{"name":"(anonymous_3)","line":20,"loc":{"start":{"line":20,"column":24},"end":{"line":20,"column":50}}},"4":{"name":"(anonymous_4)","line":29,"loc":{"start":{"line":29,"column":7},"end":{"line":29,"column":33}}},"5":{"name":"(anonymous_5)","line":35,"loc":{"start":{"line":35,"column":9},"end":{"line":35,"column":19}}},"6":{"name":"(anonymous_6)","line":40,"loc":{"start":{"line":40,"column":22},"end":{"line":40,"column":34}}}},"statementMap":{"1":{"start":{"line":7,"column":0},"end":{"line":10,"column":2}},"2":{"start":{"line":8,"column":2},"end":{"line":8,"column":43}},"3":{"start":{"line":9,"column":2},"end":{"line":9,"column":23}},"4":{"start":{"line":12,"column":0},"end":{"line":44,"column":3}},"5":{"start":{"line":18,"column":4},"end":{"line":18,"column":63}},"6":{"start":{"line":20,"column":4},"end":{"line":23,"column":7}},"7":{"start":{"line":21,"column":6},"end":{"line":21,"column":56}},"8":{"start":{"line":21,"column":28},"end":{"line":21,"column":54}},"9":{"start":{"line":22,"column":6},"end":{"line":22,"column":38}},"10":{"start":{"line":30,"column":4},"end":{"line":30,"column":45}},"11":{"start":{"line":36,"column":4},"end":{"line":36,"column":36}},"12":{"start":{"line":37,"column":4},"end":{"line":37,"column":45}},"13":{"start":{"line":38,"column":4},"end":{"line":38,"column":25}},"14":{"start":{"line":40,"column":4},"end":{"line":42,"column":13}},"15":{"start":{"line":41,"column":6},"end":{"line":41,"column":30}}},"branchMap":{"1":{"line":21,"type":"if","locations":[{"start":{"line":21,"column":6},"end":{"line":21,"column":6}},{"start":{"line":21,"column":6},"end":{"line":21,"column":6}}]}}}} \ No newline at end of file diff --git a/reports/coverage/index.html b/reports/coverage/index.html index 0e09a62c8d..b30af90c4f 100644 --- a/reports/coverage/index.html +++ b/reports/coverage/index.html @@ -183,16 +183,16 @@
// Helpers // ------- @@ -318,7 +318,7 @@diff --git a/reports/coverage/src/marionette.itemview.js.html b/reports/coverage/src/marionette.itemview.js.html index 815a17c381..829915cbc7 100644 --- a/reports/coverage/src/marionette.itemview.js.html +++ b/reports/coverage/src/marionette.itemview.js.html @@ -281,7 +281,7 @@
-341 +352 @@ -291,16 +291,16 @@
-119 +122 -119 -72 +122 +75 47 2 -119 +122 @@ -309,36 +309,36 @@
-119 +122 -119 -119 +122 +122 -119 -119 +122 +122 -119 -119 +122 +122 -118 -118 +121 +121 -118 -118 +121 +121 -118 +121 -90 +91 -88 +89 -88 +89 -88 +89
// Item View @@ -417,7 +417,7 @@diff --git a/reports/coverage/src/marionette.layout.js.html b/reports/coverage/src/marionette.layout.js.html index 237b41df61..da254d6eb1 100644 --- a/reports/coverage/src/marionette.layout.js.html +++ b/reports/coverage/src/marionette.layout.js.html @@ -591,7 +591,7 @@
diff --git a/reports/coverage/src/marionette.module.js.html b/reports/coverage/src/marionette.module.js.html index b28ac2aad9..e4ce556a4c 100644 --- a/reports/coverage/src/marionette.module.js.html +++ b/reports/coverage/src/marionette.module.js.html @@ -825,7 +825,7 @@
diff --git a/reports/coverage/src/marionette.region.js.html b/reports/coverage/src/marionette.region.js.html index fd1069f2ca..b2dc61a8c4 100644 --- a/reports/coverage/src/marionette.region.js.html +++ b/reports/coverage/src/marionette.region.js.html @@ -400,17 +400,17 @@
1 -131 +132 -131 +132 -131 +132 1 1 1 -130 +131 1 1 @@ -512,59 +512,59 @@
-80 +81 -80 +81 -80 +81 -80 -74 +81 +75 -80 +81 -80 -77 +81 +78 -80 +81 -80 -80 +81 +81 -85 -75 +86 +76 -41 +42 -74 +75 -140 -140 +142 +142 -38 +39 22 -38 +39 -38 +39 @@ -756,7 +756,7 @@
if (view.close) { view.close(); } else Eif (view.remove) { view.remove(); } - Marionette.triggerMethod.call(this, "close"); + Marionette.triggerMethod.call(this, "close", view); delete this.currentView; }, @@ -786,7 +786,7 @@
diff --git a/reports/coverage/src/marionette.regionManager.js.html b/reports/coverage/src/marionette.regionManager.js.html index c9cbae085f..0e45d71f30 100644 --- a/reports/coverage/src/marionette.regionManager.js.html +++ b/reports/coverage/src/marionette.regionManager.js.html @@ -580,9 +580,9 @@
// // Mix in methods from Underscore, for iteration, and other // collection related features. - var methods = ['forEach', 'each', 'map', 'find', 'detect', 'filter', - 'select', 'reject', 'every', 'all', 'some', 'any', 'include', - 'contains', 'invoke', 'toArray', 'first', 'initial', 'rest', + var methods = ['forEach', 'each', 'map', 'find', 'detect', 'filter', + 'select', 'reject', 'every', 'all', 'some', 'any', 'include', + 'contains', 'invoke', 'toArray', 'first', 'initial', 'rest', 'last', 'without', 'isEmpty', 'pluck']; _.each(methods, function(method) { @@ -600,7 +600,7 @@
diff --git a/reports/coverage/src/marionette.renderer.js.html b/reports/coverage/src/marionette.renderer.js.html index f17a148cc6..0c8f8a1c7b 100644 --- a/reports/coverage/src/marionette.renderer.js.html +++ b/reports/coverage/src/marionette.renderer.js.html @@ -242,20 +242,20 @@
-172 +176 3 3 3 -169 -169 -46 +173 +173 +49 -123 +124 -169 +173 @@ -294,7 +294,7 @@
diff --git a/reports/coverage/src/marionette.templatecache.js.html b/reports/coverage/src/marionette.templatecache.js.html index 62d9658474..9dd3a1d85f 100644 --- a/reports/coverage/src/marionette.templatecache.js.html +++ b/reports/coverage/src/marionette.templatecache.js.html @@ -312,14 +312,14 @@
-140 +141 -140 +141 30 30 -140 +141 @@ -352,8 +352,8 @@
-140 -110 +141 +111 @@ -397,7 +397,7 @@
}; // TemplateCache object-level methods. Manage the template -// caches from these method calls instead of creating +// caches from these method calls instead of creating // your own TemplateCache instances _.extend(Marionette.TemplateCache, { templateCaches: {}, @@ -420,7 +420,7 @@
// are specified, clears all templates: // `clear()` // - // If arguments are specified, clears each of the + // If arguments are specified, clears each of the // specified templates from the cache: // `clear("#t1", "#t2", "...")` clear: function(){ @@ -460,7 +460,7 @@
// Load a template from the DOM, by default. Override // this method to provide your own template retrieval // For asynchronous loading with AMD/RequireJS, consider - // using a template-loader plugin as described here: + // using a template-loader plugin as described here: // https://github.com/marionettejs/backbone.marionette/wiki/Using-marionette-with-requirejs loadTemplate: function(templateId){ var template = Marionette.$(templateId).html(); @@ -486,7 +486,7 @@
diff --git a/reports/coverage/src/marionette.triggermethod.js.html b/reports/coverage/src/marionette.triggermethod.js.html index 8bbeacaf0b..5a0a58049e 100644 --- a/reports/coverage/src/marionette.triggermethod.js.html +++ b/reports/coverage/src/marionette.triggermethod.js.html @@ -252,24 +252,24 @@
1 -7078 +7262 1 -3323 -3323 +3403 +3403 -3323 -3322 +3403 +3402 -3323 +3403 -381 +385 @@ -280,11 +280,11 @@
// `this.triggerMethod("foo")` will trigger the "foo" event and // call the "onFoo" method. // -// `this.triggerMethod("foo:bar") will trigger the "foo:bar" event and +// `this.triggerMethod("foo:bar")` will trigger the "foo:bar" event and // call the "onFooBar" method. Marionette.triggerMethod = (function(){ - // split the event name on the : + // split the event name on the ":" var splitter = /(^|:)(\w)/gi; // take the event section ("section1:section2:section3") @@ -293,7 +293,7 @@
return eventName.toUpperCase(); } - // actual triggerMethod name + // actual triggerMethod implementation var triggerMethod = function(event) { // get the method name from the event name var methodName = 'on' + event.replace(splitter, getEventName); @@ -318,7 +318,7 @@
diff --git a/reports/coverage/src/marionette.view.js.html b/reports/coverage/src/marionette.view.js.html index 49c0be7bd9..40cd6de383 100644 --- a/reports/coverage/src/marionette.view.js.html +++ b/reports/coverage/src/marionette.view.js.html @@ -186,7 +186,7 @@
Statements: 98.75% (79 / 80) - Branches: 92.86% (39 / 42) + Branches: 93.18% (41 / 44) Functions: 100% (17 / 17) @@ -422,22 +422,22 @@
1 -533 +551 -533 +551 -533 +551 -533 -533 +551 +551 -532 -532 +550 +550 @@ -449,7 +449,7 @@
-173 +177 @@ -458,20 +458,20 @@
-173 -173 -173 +177 +177 +177 3 -173 +177 -554 -520 +572 +538 34 @@ -488,7 +488,7 @@
-535 +553 21 @@ -536,31 +536,31 @@
-535 -535 -534 +553 +553 +552 -535 -535 +553 +553 -535 -535 -535 +553 +553 +553 -535 +553 -539 -539 +557 +557 -539 -539 +557 +557 @@ -571,32 +571,32 @@
-129 +130 -124 -124 +125 +125 3 -121 -121 +122 +122 -121 +122 -121 +122 -171 +175 @@ -619,7 +619,7 @@
-121 +122 2 @@ -646,7 +646,7 @@
// this is a backfill since backbone removed the assignment // of this.options // at some point however this may be removed - this.options = _.extend({}, this.options, options); + this.options = _.extend({}, _.result(this, 'options'), _.isFunction(options) ? options.call(this) : options); // parses out the @ui DSL for events this.events = this.normalizeUIKeys(_.result(this, 'events')); @@ -852,7 +852,7 @@
diff --git a/upgradeGuide.md b/upgradeGuide.md index 9fbb20c5b3..540d636f44 100644 --- a/upgradeGuide.md +++ b/upgradeGuide.md @@ -1,4 +1,4 @@ -## Upgrade to v.1.1.0 ~ v1.4.1 +## Upgrade to v.1.1.0 ~ v1.5.0 No breaking changes have been introduced between these versions ## Upgrade to v1.1.0