Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: marionettejs/backbone.marionette
...
head fork: marionettejs/backbone.marionette
Checking mergeability… Don't worry, you can still create the pull request.
  • 3 commits
  • 28 files changed
  • 0 commit comments
  • 1 contributor
Showing with 43 additions and 33 deletions.
  1. +12 −0 changelog.md
  2. +3 −4 lib/core/amd/backbone.marionette.js
  3. +1 −1  lib/core/amd/backbone.marionette.min.js
  4. +1 −1  reports/coverage/index.html
  5. +1 −1  reports/coverage/spec/javascripts/support/index.html
  6. +1 −1  reports/coverage/spec/javascripts/support/marionette.support.js.html
  7. +1 −1  reports/coverage/src/build/index.html
  8. +1 −1  reports/coverage/src/build/marionette.core.js.html
  9. +1 −1  reports/coverage/src/index.html
  10. +1 −1  reports/coverage/src/marionette.application.js.html
  11. +1 −1  reports/coverage/src/marionette.approuter.js.html
  12. +1 −1  reports/coverage/src/marionette.bindEntityEvents.js.html
  13. +1 −1  reports/coverage/src/marionette.callbacks.js.html
  14. +1 −1  reports/coverage/src/marionette.collectionview.js.html
  15. +1 −1  reports/coverage/src/marionette.compositeview.js.html
  16. +1 −1  reports/coverage/src/marionette.controller.js.html
  17. +1 −1  reports/coverage/src/marionette.domRefresh.js.html
  18. +1 −1  reports/coverage/src/marionette.helpers.js.html
  19. +1 −1  reports/coverage/src/marionette.itemview.js.html
  20. +1 −1  reports/coverage/src/marionette.layout.js.html
  21. +1 −1  reports/coverage/src/marionette.module.js.html
  22. +1 −1  reports/coverage/src/marionette.region.js.html
  23. +1 −1  reports/coverage/src/marionette.regionManager.js.html
  24. +1 −1  reports/coverage/src/marionette.renderer.js.html
  25. +1 −1  reports/coverage/src/marionette.templatecache.js.html
  26. +1 −1  reports/coverage/src/marionette.triggermethod.js.html
  27. +1 −1  reports/coverage/src/marionette.view.js.html
  28. +3 −4 src/build/amd.core.js
View
12 changelog.md
@@ -1,3 +1,15 @@
+### v1.0.1 [view commit logs](https://github.com/marionettejs/backbone.marionette/compare/v1.0.0...v1.0.1)
+
+* AMD build: Removed `require('jQuery')` as Marionette now pulled `Backbone.$` as
+ `Marionette.$`.
+
+* Fixed RegionManager to allow region types to be specified again, not just
+ region instances.
+
+* NPM: Removed hard dependency on jQuery from the dependency list. This will
+ be pulled in by other libs, or should be pulled in manually, to get the
+ right version.
+
### v1.0.0 [view commit logs](https://github.com/marionettejs/backbone.marionette/compare/v1.0.0-rc6...v1.0.0)
* RegionManager
View
7 lib/core/amd/backbone.marionette.js
@@ -1,20 +1,19 @@
(function (root, factory) {
if (typeof exports === 'object') {
- var jquery = require('jquery');
var underscore = require('underscore');
var backbone = require('backbone');
var wreqr = require('backbone.wreqr');
var babysitter = require('backbone.babysitter');
- module.exports = factory(jquery, underscore, backbone, wreqr, babysitter);
+ module.exports = factory(underscore, backbone, wreqr, babysitter);
} else if (typeof define === 'function' && define.amd) {
- define(['jquery', 'underscore', 'backbone', 'backbone.wreqr', 'backbone.babysitter'], factory);
+ define(['underscore', 'backbone', 'backbone.wreqr', 'backbone.babysitter'], factory);
}
-}(this, function ($, _, Backbone) {
+}(this, function (_, Backbone) {
var Marionette = (function(global, Backbone, _){
"use strict";
View
2  lib/core/amd/backbone.marionette.min.js
@@ -17,4 +17,4 @@
* https://github.com/marionettejs/backbone.wreqr/
*/
-(function(e,t){if("object"==typeof exports){var i=require("jquery"),n=require("underscore"),r=require("backbone"),o=require("backbone.wreqr"),s=require("backbone.babysitter");module.exports=t(i,n,r,o,s)}else"function"==typeof define&&define.amd&&define(["jquery","underscore","backbone","backbone.wreqr","backbone.babysitter"],t)})(this,function(e,t,i){return function(e,t,i){"use strict";function n(e){return s.call(e)}function r(e,t){var i=Error(e);throw i.name=t||"Error",i}var o={};t.Marionette=o,o.$=t.$;var s=Array.prototype.slice;return o.extend=t.Model.extend,o.getOption=function(e,t){if(e&&t){var i;return i=e.options&&t in e.options&&void 0!==e.options[t]?e.options[t]:e[t]}},o.triggerMethod=function(){function e(e,t,i){return i.toUpperCase()}var t=/(^|:)(\w)/gi,n=function(n){var r="on"+n.replace(t,e),o=this[r];return this.trigger.apply(this,arguments),i.isFunction(o)?o.apply(this,i.tail(arguments)):void 0};return n}(),o.MonitorDOMRefresh=function(){function e(e){e._isShown=!0,n(e)}function t(e){e._isRendered=!0,n(e)}function n(e){e._isShown&&e._isRendered&&i.isFunction(e.triggerMethod)&&e.triggerMethod("dom:refresh")}return function(i){i.listenTo(i,"show",function(){e(i)}),i.listenTo(i,"render",function(){t(i)})}}(),function(e){function t(e,t,n,o){var s=o.split(/\s+/);i.each(s,function(i){var o=e[i];o||r("Method '"+i+"' was configured as an event handler, but does not exist."),e.listenTo(t,n,o,e)})}function n(e,t,i,n){e.listenTo(t,i,n,e)}function o(e,t,n,r){var o=r.split(/\s+/);i.each(o,function(){var i=e[i];e.stopListening(t,n,i,e)})}function s(e,t,i,n){e.stopListening(t,i,n,e)}function h(e,t,n,r,o){t&&n&&(i.isFunction(n)&&(n=n.call(e)),i.each(n,function(n,s){i.isFunction(n)?r(e,t,s,n):o(e,t,s,n)}))}e.bindEntityEvents=function(e,i,r){h(e,i,r,n,t)},e.unbindEntityEvents=function(e,t,i){h(e,t,i,s,o)}}(o),o.Callbacks=function(){this._deferred=o.$.Deferred(),this._callbacks=[]},i.extend(o.Callbacks.prototype,{add:function(e,t){this._callbacks.push({cb:e,ctx:t}),this._deferred.done(function(i,n){t&&(i=t),e.call(i,n)})},run:function(e,t){this._deferred.resolve(t,e)},reset:function(){var e=this._callbacks;this._deferred=o.$.Deferred(),this._callbacks=[],i.each(e,function(e){this.add(e.cb,e.ctx)},this)}}),o.Controller=function(e){this.triggerMethod=o.triggerMethod,this.options=e||{},i.isFunction(this.initialize)&&this.initialize(this.options)},o.Controller.extend=o.extend,i.extend(o.Controller.prototype,t.Events,{close:function(){this.stopListening(),this.triggerMethod("close"),this.unbind()}}),o.Region=function(e){if(this.options=e||{},this.el=o.getOption(this,"el"),!this.el){var t=Error("An 'el' must be specified for a region.");throw t.name="NoElError",t}if(this.initialize){var i=Array.prototype.slice.apply(arguments);this.initialize.apply(this,i)}},i.extend(o.Region,{buildRegion:function(e,t){var n="string"==typeof e,r="string"==typeof e.selector,o=e.regionType===void 0,s="function"==typeof e;if(!s&&!n&&!r)throw Error("Region must be specified as a Region type, a selector string or an object with selector property");var h,l;n&&(h=e),e.selector&&(h=e.selector),s&&(l=e),!s&&o&&(l=t),e.regionType&&(l=e.regionType);var a=new l({el:h});return e.parentEl&&(a.getEl=function(t){var n=e.parentEl;return i.isFunction(n)&&(n=n()),n.find(t)}),a}}),i.extend(o.Region.prototype,t.Events,{show:function(e){this.ensureEl(),e!==this.currentView?(this.close(),e.render(),this.open(e)):e.render(),o.triggerMethod.call(e,"show"),o.triggerMethod.call(this,"show",e),this.currentView=e},ensureEl:function(){this.$el&&0!==this.$el.length||(this.$el=this.getEl(this.el))},getEl:function(e){return o.$(e)},open:function(e){this.$el.empty().append(e.el)},close:function(){var e=this.currentView;e&&!e.isClosed&&(e.close?e.close():e.remove&&e.remove(),o.triggerMethod.call(this,"close"),delete this.currentView)},attachView:function(e){this.currentView=e},reset:function(){this.close(),delete this.$el}}),o.Region.extend=o.extend,o.RegionManager=function(e){var t=e.Controller.extend({constructor:function(t){this._regions={},e.Controller.prototype.constructor.call(this,t)},addRegions:function(e,t){var n={};return i.each(e,function(e,r){"string"==typeof e&&(e={selector:e}),e.selector&&(e=i.defaults({},e,t));var o=this.addRegion(r,e);n[r]=o},this),n},addRegion:function(t,n){var r,o=i.isObject(n),s=i.isString(n),h=!!n.selector;return r=s||o&&h?e.Region.buildRegion(n,e.Region):i.isFunction(n)?e.Region.buildRegion(n,e.Region):n,this._store(t,r),this.triggerMethod("region:add",t,r),r},get:function(e){return this._regions[e]},removeRegion:function(e){var t=this._regions[e];this._remove(e,t)},removeRegions:function(){i.each(this._regions,function(e,t){this._remove(t,e)},this)},closeRegions:function(){i.each(this._regions,function(e){e.close()},this)},close:function(){this.removeRegions();var t=Array.prototype.slice.call(arguments);e.Controller.prototype.close.apply(this,t)},_store:function(e,t){this._regions[e]=t,this.length=i.size(this._regions)},_remove:function(e,t){t.close(),delete this._regions[e],this.triggerMethod("region:remove",e,t)}}),n=["forEach","each","map","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","toArray","first","initial","rest","last","without","isEmpty","pluck"];return i.each(n,function(e){t.prototype[e]=function(){var t=i.values(this._regions),n=[t].concat(i.toArray(arguments));return i[e].apply(i,n)}}),t}(o),o.TemplateCache=function(e){this.templateId=e},i.extend(o.TemplateCache,{templateCaches:{},get:function(e){var t=this.templateCaches[e];return t||(t=new o.TemplateCache(e),this.templateCaches[e]=t),t.load()},clear:function(){var e,t=n(arguments),i=t.length;if(i>0)for(e=0;i>e;e++)delete this.templateCaches[t[e]];else this.templateCaches={}}}),i.extend(o.TemplateCache.prototype,{load:function(){if(this.compiledTemplate)return this.compiledTemplate;var e=this.loadTemplate(this.templateId);return this.compiledTemplate=this.compileTemplate(e),this.compiledTemplate},loadTemplate:function(e){var t=o.$(e).html();return t&&0!==t.length||r("Could not find template: '"+e+"'","NoTemplateError"),t},compileTemplate:function(e){return i.template(e)}}),o.Renderer={render:function(e,t){var i="function"==typeof e?e:o.TemplateCache.get(e);return i(t)}},o.View=t.View.extend({constructor:function(){i.bindAll(this,"render");var e=Array.prototype.slice.apply(arguments);t.View.prototype.constructor.apply(this,e),o.MonitorDOMRefresh(this),this.listenTo(this,"show",this.onShowCalled,this)},triggerMethod:o.triggerMethod,getTemplate:function(){return o.getOption(this,"template")},mixinTemplateHelpers:function(e){e=e||{};var t=this.templateHelpers;return i.isFunction(t)&&(t=t.call(this)),i.extend(e,t)},configureTriggers:function(){if(this.triggers){var e={},t=i.result(this,"triggers");return i.each(t,function(t,i){e[i]=function(e){e&&e.preventDefault&&e.preventDefault(),e&&e.stopPropagation&&e.stopPropagation();var i={view:this,model:this.model,collection:this.collection};this.triggerMethod(t,i)}},this),e}},delegateEvents:function(e){this._delegateDOMEvents(e),o.bindEntityEvents(this,this.model,o.getOption(this,"modelEvents")),o.bindEntityEvents(this,this.collection,o.getOption(this,"collectionEvents"))},_delegateDOMEvents:function(e){e=e||this.events,i.isFunction(e)&&(e=e.call(this));var n={},r=this.configureTriggers();i.extend(n,e,r),t.View.prototype.delegateEvents.call(this,n)},undelegateEvents:function(){var e=Array.prototype.slice.call(arguments);t.View.prototype.undelegateEvents.apply(this,e),o.unbindEntityEvents(this,this.model,o.getOption(this,"modelEvents")),o.unbindEntityEvents(this,this.collection,o.getOption(this,"collectionEvents"))},onShowCalled:function(){},close:function(){if(!this.isClosed){var e=this.triggerMethod("before:close");e!==!1&&(this.unbindUIElements(),this.isClosed=!0,this.triggerMethod("close"),this.remove())}},bindUIElements:function(){if(this.ui){this._uiBindings||(this._uiBindings=this.ui);var e=i.result(this,"_uiBindings");this.ui={},i.each(i.keys(e),function(t){var i=e[t];this.ui[t]=this.$(i)},this)}},unbindUIElements:function(){this.ui&&(i.each(this.ui,function(e,t){delete this.ui[t]},this),this.ui=this._uiBindings,delete this._uiBindings)}}),o.ItemView=o.View.extend({constructor:function(){o.View.prototype.constructor.apply(this,n(arguments))},serializeData:function(){var e={};return this.model?e=this.model.toJSON():this.collection&&(e={items:this.collection.toJSON()}),e},render:function(){this.isClosed=!1,this.triggerMethod("before:render",this),this.triggerMethod("item:before:render",this);var e=this.serializeData();e=this.mixinTemplateHelpers(e);var t=this.getTemplate(),i=o.Renderer.render(t,e);return this.$el.html(i),this.bindUIElements(),this.triggerMethod("render",this),this.triggerMethod("item:rendered",this),this},close:function(){this.isClosed||(this.triggerMethod("item:before:close"),o.View.prototype.close.apply(this,n(arguments)),this.triggerMethod("item:closed"))}}),o.CollectionView=o.View.extend({itemViewEventPrefix:"itemview",constructor:function(){this._initChildViewStorage(),o.View.prototype.constructor.apply(this,n(arguments)),this._initialEvents()},_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(e){this.closeEmptyView();var t=this.getItemView(e),i=this.collection.indexOf(e);this.addItemView(e,t,i)},onShowCalled:function(){this.children.each(function(e){o.triggerMethod.call(e,"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.closeEmptyView(),this.closeChildren(),this.collection&&this.collection.length>0?this.showCollection():this.showEmptyView()},showCollection:function(){var e;this.collection.each(function(t,i){e=this.getItemView(t),this.addItemView(t,e,i)},this)},showEmptyView:function(){var e=o.getOption(this,"emptyView");if(e&&!this._showingEmptyView){this._showingEmptyView=!0;var i=new t.Model;this.addItemView(i,e,0)}},closeEmptyView:function(){this._showingEmptyView&&(this.closeChildren(),delete this._showingEmptyView)},getItemView:function(){var e=o.getOption(this,"itemView");return e||r("An `itemView` must be specified","NoItemViewError"),e},addItemView:function(e,t,n){var r=o.getOption(this,"itemViewOptions");i.isFunction(r)&&(r=r.call(this,e,n));var s=this.buildItemView(e,t,r);this.addChildViewEventForwarding(s),this.triggerMethod("before:item:added",s),this.children.add(s),this.renderItemView(s,n),this._isShown&&o.triggerMethod.call(s,"show"),this.triggerMethod("after:item:added",s)},addChildViewEventForwarding:function(e){var t=o.getOption(this,"itemViewEventPrefix");this.listenTo(e,"all",function(){var i=n(arguments);i[0]=t+":"+i[0],i.splice(1,0,e),o.triggerMethod.apply(this,i)},this)},renderItemView:function(e,t){e.render(),this.appendHtml(this,e,t)},buildItemView:function(e,t,n){var r=i.extend({model:e},n);return new t(r)},removeItemView:function(e){var t=this.children.findByModel(e);this.removeChildView(t),this.checkEmpty()},removeChildView:function(e){e&&(this.stopListening(e),e.close?e.close():e.remove&&e.remove(),this.children.remove(e)),this.triggerMethod("item:removed",e)},checkEmpty:function(){this.collection&&0!==this.collection.length||this.showEmptyView()},appendHtml:function(e,t){e.$el.append(t.el)},_initChildViewStorage:function(){this.children=new t.ChildViewContainer},close:function(){this.isClosed||(this.triggerMethod("collection:before:close"),this.closeChildren(),this.triggerMethod("collection:closed"),o.View.prototype.close.apply(this,n(arguments)))},closeChildren:function(){this.children.each(function(e){this.removeChildView(e)},this),this.checkEmpty()}}),o.CompositeView=o.CollectionView.extend({constructor:function(){o.CollectionView.apply(this,n(arguments)),this.itemView=this.getItemView()},_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._renderChildren,this))},getItemView:function(){var e=o.getOption(this,"itemView")||this.constructor;return e||r("An `itemView` must be specified","NoItemViewError"),e},serializeData:function(){var e={};return this.model&&(e=this.model.toJSON()),e},render:function(){this.isRendered=!0,this.isClosed=!1,this.resetItemViewContainer(),this.triggerBeforeRender();var e=this.renderModel();return this.$el.html(e),this.bindUIElements(),this.triggerMethod("composite:model:rendered"),this._renderChildren(),this.triggerMethod("composite:rendered"),this.triggerRendered(),this},_renderChildren:function(){this.isRendered&&(o.CollectionView.prototype._renderChildren.call(this),this.triggerMethod("composite:collection:rendered"))},renderModel:function(){var e={};e=this.serializeData(),e=this.mixinTemplateHelpers(e);var t=this.getTemplate();return o.Renderer.render(t,e)},appendHtml:function(e,t){var i=this.getItemViewContainer(e);i.append(t.el)},getItemViewContainer:function(e){if("$itemViewContainer"in e)return e.$itemViewContainer;var t;if(e.itemViewContainer){var n=i.result(e,"itemViewContainer");t=e.$(n),0>=t.length&&r("The specified `itemViewContainer` was not found: "+e.itemViewContainer,"ItemViewContainerMissingError")}else t=e.$el;return e.$itemViewContainer=t,t},resetItemViewContainer:function(){this.$itemViewContainer&&delete this.$itemViewContainer}}),o.Layout=o.ItemView.extend({regionType:o.Region,constructor:function(e){e=e||{},this._firstRender=!0,this._initializeRegions(e),o.ItemView.call(this,e)},render:function(){this._firstRender?this._firstRender=!1:this.isClosed?this._initializeRegions():this._reInitializeRegions();var e=Array.prototype.slice.apply(arguments),t=o.ItemView.prototype.render.apply(this,e);return t},close:function(){if(!this.isClosed){this.regionManager.close();var e=Array.prototype.slice.apply(arguments);o.ItemView.prototype.close.apply(this,e)}},addRegion:function(e,t){var i={};return i[e]=t,this.addRegions(i)[e]},addRegions:function(e){return this.regions=i.extend(this.regions||{},e),this._buildRegions(e)},removeRegion:function(e){return this.regionManager.removeRegion(e)},_buildRegions:function(e){var t=this,i={parentEl:function(){return t.$el}};return this.regionManager.addRegions(e,i)},_initializeRegions:function(e){var t;this._initRegionManager(),t=i.isFunction(this.regions)?this.regions(e):this.regions||{},this.addRegions(t)},_reInitializeRegions:function(){this.regionManager.closeRegions(),this.regionManager.each(function(e){e.reset()})},_initRegionManager:function(){this.regionManager=new o.RegionManager,this.listenTo(this.regionManager,"region:add",function(e,t){this[e]=t,this.trigger("region:add",e,t)}),this.listenTo(this.regionManager,"region:remove",function(e,t){delete this[e],this.trigger("region:remove",e,t)})}}),o.AppRouter=t.Router.extend({constructor:function(e){if(t.Router.prototype.constructor.apply(this,n(arguments)),this.options=e,this.appRoutes){var i=o.getOption(this,"controller");this.processAppRoutes(i,this.appRoutes)}},processAppRoutes:function(e,t){i.each(t,function(t,n){var r=e[t];if(!r)throw Error("Method '"+t+"' was not found on the controller");this.route(n,t,i.bind(r,e))},this)}}),o.Application=function(e){this._initRegionManager(),this._initCallbacks=new o.Callbacks,this.vent=new t.Wreqr.EventAggregator,this.commands=new t.Wreqr.Commands,this.reqres=new t.Wreqr.RequestResponse,this.submodules={},i.extend(this,e),this.triggerMethod=o.triggerMethod},i.extend(o.Application.prototype,t.Events,{execute:function(){var e=Array.prototype.slice.apply(arguments);this.commands.execute.apply(this.commands,e)},request:function(){var e=Array.prototype.slice.apply(arguments);return this.reqres.request.apply(this.reqres,e)},addInitializer:function(e){this._initCallbacks.add(e)},start:function(e){this.triggerMethod("initialize:before",e),this._initCallbacks.run(e,this),this.triggerMethod("initialize:after",e),this.triggerMethod("start",e)},addRegions:function(e){return this._regionManager.addRegions(e)},removeRegion:function(e){this._regionManager.removeRegion(e)},module:function(){var e=n(arguments);return e.unshift(this),o.Module.create.apply(o.Module,e)},_initRegionManager:function(){this._regionManager=new o.RegionManager,this.listenTo(this._regionManager,"region:add",function(e,t){this[e]=t}),this.listenTo(this._regionManager,"region:remove",function(e){delete this[e]})}}),o.Application.extend=o.extend,o.Module=function(e,t){this.moduleName=e,this.submodules={},this._setupInitializersAndFinalizers(),this.app=t,this.startWithParent=!0,this.triggerMethod=o.triggerMethod},i.extend(o.Module.prototype,t.Events,{addInitializer:function(e){this._initializerCallbacks.add(e)},addFinalizer:function(e){this._finalizerCallbacks.add(e)},start:function(e){this._isInitialized||(i.each(this.submodules,function(t){t.startWithParent&&t.start(e)}),this.triggerMethod("before:start",e),this._initializerCallbacks.run(e,this),this._isInitialized=!0,this.triggerMethod("start",e))},stop:function(){this._isInitialized&&(this._isInitialized=!1,o.triggerMethod.call(this,"before:stop"),i.each(this.submodules,function(e){e.stop()}),this._finalizerCallbacks.run(void 0,this),this._initializerCallbacks.reset(),this._finalizerCallbacks.reset(),o.triggerMethod.call(this,"stop"))},addDefinition:function(e,t){this._runModuleDefinition(e,t)},_runModuleDefinition:function(e,n){if(e){var r=i.flatten([this,this.app,t,o,o.$,i,n]);e.apply(this,r)}},_setupInitializersAndFinalizers:function(){this._initializerCallbacks=new o.Callbacks,this._finalizerCallbacks=new o.Callbacks}}),i.extend(o.Module,{create:function(e,t,r){var o=e,s=n(arguments);s.splice(0,3),t=t.split(".");var h=t.length,l=[];return l[h-1]=r,i.each(t,function(t,i){var n=o;o=this._getModule(n,t,e),this._addModuleDefinition(n,o,l[i],s)},this),o},_getModule:function(e,t,i){var n=e[t];return n||(n=new o.Module(t,i),e[t]=n,e.submodules[t]=n),n},_addModuleDefinition:function(e,t,n,r){var o,s;i.isFunction(n)?(o=n,s=!0):i.isObject(n)?(o=n.define,s=n.startWithParent):s=!0,o&&t.addDefinition(o,r),t.startWithParent=t.startWithParent&&s,t.startWithParent&&!t.startWithParentIsConfigured&&(t.startWithParentIsConfigured=!0,e.addInitializer(function(e){t.startWithParent&&t.start(e)}))}}),o}(this,i,t),i.Marionette});
+(function(e,t){if("object"==typeof exports){var i=require("underscore"),n=require("backbone"),r=require("backbone.wreqr"),o=require("backbone.babysitter");module.exports=t(i,n,r,o)}else"function"==typeof define&&define.amd&&define(["underscore","backbone","backbone.wreqr","backbone.babysitter"],t)})(this,function(e,t){return function(e,t,i){"use strict";function n(e){return s.call(e)}function r(e,t){var i=Error(e);throw i.name=t||"Error",i}var o={};t.Marionette=o,o.$=t.$;var s=Array.prototype.slice;return o.extend=t.Model.extend,o.getOption=function(e,t){if(e&&t){var i;return i=e.options&&t in e.options&&void 0!==e.options[t]?e.options[t]:e[t]}},o.triggerMethod=function(){function e(e,t,i){return i.toUpperCase()}var t=/(^|:)(\w)/gi,n=function(n){var r="on"+n.replace(t,e),o=this[r];return this.trigger.apply(this,arguments),i.isFunction(o)?o.apply(this,i.tail(arguments)):void 0};return n}(),o.MonitorDOMRefresh=function(){function e(e){e._isShown=!0,n(e)}function t(e){e._isRendered=!0,n(e)}function n(e){e._isShown&&e._isRendered&&i.isFunction(e.triggerMethod)&&e.triggerMethod("dom:refresh")}return function(i){i.listenTo(i,"show",function(){e(i)}),i.listenTo(i,"render",function(){t(i)})}}(),function(e){function t(e,t,n,o){var s=o.split(/\s+/);i.each(s,function(i){var o=e[i];o||r("Method '"+i+"' was configured as an event handler, but does not exist."),e.listenTo(t,n,o,e)})}function n(e,t,i,n){e.listenTo(t,i,n,e)}function o(e,t,n,r){var o=r.split(/\s+/);i.each(o,function(){var i=e[i];e.stopListening(t,n,i,e)})}function s(e,t,i,n){e.stopListening(t,i,n,e)}function h(e,t,n,r,o){t&&n&&(i.isFunction(n)&&(n=n.call(e)),i.each(n,function(n,s){i.isFunction(n)?r(e,t,s,n):o(e,t,s,n)}))}e.bindEntityEvents=function(e,i,r){h(e,i,r,n,t)},e.unbindEntityEvents=function(e,t,i){h(e,t,i,s,o)}}(o),o.Callbacks=function(){this._deferred=o.$.Deferred(),this._callbacks=[]},i.extend(o.Callbacks.prototype,{add:function(e,t){this._callbacks.push({cb:e,ctx:t}),this._deferred.done(function(i,n){t&&(i=t),e.call(i,n)})},run:function(e,t){this._deferred.resolve(t,e)},reset:function(){var e=this._callbacks;this._deferred=o.$.Deferred(),this._callbacks=[],i.each(e,function(e){this.add(e.cb,e.ctx)},this)}}),o.Controller=function(e){this.triggerMethod=o.triggerMethod,this.options=e||{},i.isFunction(this.initialize)&&this.initialize(this.options)},o.Controller.extend=o.extend,i.extend(o.Controller.prototype,t.Events,{close:function(){this.stopListening(),this.triggerMethod("close"),this.unbind()}}),o.Region=function(e){if(this.options=e||{},this.el=o.getOption(this,"el"),!this.el){var t=Error("An 'el' must be specified for a region.");throw t.name="NoElError",t}if(this.initialize){var i=Array.prototype.slice.apply(arguments);this.initialize.apply(this,i)}},i.extend(o.Region,{buildRegion:function(e,t){var n="string"==typeof e,r="string"==typeof e.selector,o=e.regionType===void 0,s="function"==typeof e;if(!s&&!n&&!r)throw Error("Region must be specified as a Region type, a selector string or an object with selector property");var h,l;n&&(h=e),e.selector&&(h=e.selector),s&&(l=e),!s&&o&&(l=t),e.regionType&&(l=e.regionType);var a=new l({el:h});return e.parentEl&&(a.getEl=function(t){var n=e.parentEl;return i.isFunction(n)&&(n=n()),n.find(t)}),a}}),i.extend(o.Region.prototype,t.Events,{show:function(e){this.ensureEl(),e!==this.currentView?(this.close(),e.render(),this.open(e)):e.render(),o.triggerMethod.call(e,"show"),o.triggerMethod.call(this,"show",e),this.currentView=e},ensureEl:function(){this.$el&&0!==this.$el.length||(this.$el=this.getEl(this.el))},getEl:function(e){return o.$(e)},open:function(e){this.$el.empty().append(e.el)},close:function(){var e=this.currentView;e&&!e.isClosed&&(e.close?e.close():e.remove&&e.remove(),o.triggerMethod.call(this,"close"),delete this.currentView)},attachView:function(e){this.currentView=e},reset:function(){this.close(),delete this.$el}}),o.Region.extend=o.extend,o.RegionManager=function(e){var t=e.Controller.extend({constructor:function(t){this._regions={},e.Controller.prototype.constructor.call(this,t)},addRegions:function(e,t){var n={};return i.each(e,function(e,r){"string"==typeof e&&(e={selector:e}),e.selector&&(e=i.defaults({},e,t));var o=this.addRegion(r,e);n[r]=o},this),n},addRegion:function(t,n){var r,o=i.isObject(n),s=i.isString(n),h=!!n.selector;return r=s||o&&h?e.Region.buildRegion(n,e.Region):i.isFunction(n)?e.Region.buildRegion(n,e.Region):n,this._store(t,r),this.triggerMethod("region:add",t,r),r},get:function(e){return this._regions[e]},removeRegion:function(e){var t=this._regions[e];this._remove(e,t)},removeRegions:function(){i.each(this._regions,function(e,t){this._remove(t,e)},this)},closeRegions:function(){i.each(this._regions,function(e){e.close()},this)},close:function(){this.removeRegions();var t=Array.prototype.slice.call(arguments);e.Controller.prototype.close.apply(this,t)},_store:function(e,t){this._regions[e]=t,this.length=i.size(this._regions)},_remove:function(e,t){t.close(),delete this._regions[e],this.triggerMethod("region:remove",e,t)}}),n=["forEach","each","map","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","toArray","first","initial","rest","last","without","isEmpty","pluck"];return i.each(n,function(e){t.prototype[e]=function(){var t=i.values(this._regions),n=[t].concat(i.toArray(arguments));return i[e].apply(i,n)}}),t}(o),o.TemplateCache=function(e){this.templateId=e},i.extend(o.TemplateCache,{templateCaches:{},get:function(e){var t=this.templateCaches[e];return t||(t=new o.TemplateCache(e),this.templateCaches[e]=t),t.load()},clear:function(){var e,t=n(arguments),i=t.length;if(i>0)for(e=0;i>e;e++)delete this.templateCaches[t[e]];else this.templateCaches={}}}),i.extend(o.TemplateCache.prototype,{load:function(){if(this.compiledTemplate)return this.compiledTemplate;var e=this.loadTemplate(this.templateId);return this.compiledTemplate=this.compileTemplate(e),this.compiledTemplate},loadTemplate:function(e){var t=o.$(e).html();return t&&0!==t.length||r("Could not find template: '"+e+"'","NoTemplateError"),t},compileTemplate:function(e){return i.template(e)}}),o.Renderer={render:function(e,t){var i="function"==typeof e?e:o.TemplateCache.get(e);return i(t)}},o.View=t.View.extend({constructor:function(){i.bindAll(this,"render");var e=Array.prototype.slice.apply(arguments);t.View.prototype.constructor.apply(this,e),o.MonitorDOMRefresh(this),this.listenTo(this,"show",this.onShowCalled,this)},triggerMethod:o.triggerMethod,getTemplate:function(){return o.getOption(this,"template")},mixinTemplateHelpers:function(e){e=e||{};var t=this.templateHelpers;return i.isFunction(t)&&(t=t.call(this)),i.extend(e,t)},configureTriggers:function(){if(this.triggers){var e={},t=i.result(this,"triggers");return i.each(t,function(t,i){e[i]=function(e){e&&e.preventDefault&&e.preventDefault(),e&&e.stopPropagation&&e.stopPropagation();var i={view:this,model:this.model,collection:this.collection};this.triggerMethod(t,i)}},this),e}},delegateEvents:function(e){this._delegateDOMEvents(e),o.bindEntityEvents(this,this.model,o.getOption(this,"modelEvents")),o.bindEntityEvents(this,this.collection,o.getOption(this,"collectionEvents"))},_delegateDOMEvents:function(e){e=e||this.events,i.isFunction(e)&&(e=e.call(this));var n={},r=this.configureTriggers();i.extend(n,e,r),t.View.prototype.delegateEvents.call(this,n)},undelegateEvents:function(){var e=Array.prototype.slice.call(arguments);t.View.prototype.undelegateEvents.apply(this,e),o.unbindEntityEvents(this,this.model,o.getOption(this,"modelEvents")),o.unbindEntityEvents(this,this.collection,o.getOption(this,"collectionEvents"))},onShowCalled:function(){},close:function(){if(!this.isClosed){var e=this.triggerMethod("before:close");e!==!1&&(this.unbindUIElements(),this.isClosed=!0,this.triggerMethod("close"),this.remove())}},bindUIElements:function(){if(this.ui){this._uiBindings||(this._uiBindings=this.ui);var e=i.result(this,"_uiBindings");this.ui={},i.each(i.keys(e),function(t){var i=e[t];this.ui[t]=this.$(i)},this)}},unbindUIElements:function(){this.ui&&(i.each(this.ui,function(e,t){delete this.ui[t]},this),this.ui=this._uiBindings,delete this._uiBindings)}}),o.ItemView=o.View.extend({constructor:function(){o.View.prototype.constructor.apply(this,n(arguments))},serializeData:function(){var e={};return this.model?e=this.model.toJSON():this.collection&&(e={items:this.collection.toJSON()}),e},render:function(){this.isClosed=!1,this.triggerMethod("before:render",this),this.triggerMethod("item:before:render",this);var e=this.serializeData();e=this.mixinTemplateHelpers(e);var t=this.getTemplate(),i=o.Renderer.render(t,e);return this.$el.html(i),this.bindUIElements(),this.triggerMethod("render",this),this.triggerMethod("item:rendered",this),this},close:function(){this.isClosed||(this.triggerMethod("item:before:close"),o.View.prototype.close.apply(this,n(arguments)),this.triggerMethod("item:closed"))}}),o.CollectionView=o.View.extend({itemViewEventPrefix:"itemview",constructor:function(){this._initChildViewStorage(),o.View.prototype.constructor.apply(this,n(arguments)),this._initialEvents()},_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(e){this.closeEmptyView();var t=this.getItemView(e),i=this.collection.indexOf(e);this.addItemView(e,t,i)},onShowCalled:function(){this.children.each(function(e){o.triggerMethod.call(e,"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.closeEmptyView(),this.closeChildren(),this.collection&&this.collection.length>0?this.showCollection():this.showEmptyView()},showCollection:function(){var e;this.collection.each(function(t,i){e=this.getItemView(t),this.addItemView(t,e,i)},this)},showEmptyView:function(){var e=o.getOption(this,"emptyView");if(e&&!this._showingEmptyView){this._showingEmptyView=!0;var i=new t.Model;this.addItemView(i,e,0)}},closeEmptyView:function(){this._showingEmptyView&&(this.closeChildren(),delete this._showingEmptyView)},getItemView:function(){var e=o.getOption(this,"itemView");return e||r("An `itemView` must be specified","NoItemViewError"),e},addItemView:function(e,t,n){var r=o.getOption(this,"itemViewOptions");i.isFunction(r)&&(r=r.call(this,e,n));var s=this.buildItemView(e,t,r);this.addChildViewEventForwarding(s),this.triggerMethod("before:item:added",s),this.children.add(s),this.renderItemView(s,n),this._isShown&&o.triggerMethod.call(s,"show"),this.triggerMethod("after:item:added",s)},addChildViewEventForwarding:function(e){var t=o.getOption(this,"itemViewEventPrefix");this.listenTo(e,"all",function(){var i=n(arguments);i[0]=t+":"+i[0],i.splice(1,0,e),o.triggerMethod.apply(this,i)},this)},renderItemView:function(e,t){e.render(),this.appendHtml(this,e,t)},buildItemView:function(e,t,n){var r=i.extend({model:e},n);return new t(r)},removeItemView:function(e){var t=this.children.findByModel(e);this.removeChildView(t),this.checkEmpty()},removeChildView:function(e){e&&(this.stopListening(e),e.close?e.close():e.remove&&e.remove(),this.children.remove(e)),this.triggerMethod("item:removed",e)},checkEmpty:function(){this.collection&&0!==this.collection.length||this.showEmptyView()},appendHtml:function(e,t){e.$el.append(t.el)},_initChildViewStorage:function(){this.children=new t.ChildViewContainer},close:function(){this.isClosed||(this.triggerMethod("collection:before:close"),this.closeChildren(),this.triggerMethod("collection:closed"),o.View.prototype.close.apply(this,n(arguments)))},closeChildren:function(){this.children.each(function(e){this.removeChildView(e)},this),this.checkEmpty()}}),o.CompositeView=o.CollectionView.extend({constructor:function(){o.CollectionView.apply(this,n(arguments)),this.itemView=this.getItemView()},_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._renderChildren,this))},getItemView:function(){var e=o.getOption(this,"itemView")||this.constructor;return e||r("An `itemView` must be specified","NoItemViewError"),e},serializeData:function(){var e={};return this.model&&(e=this.model.toJSON()),e},render:function(){this.isRendered=!0,this.isClosed=!1,this.resetItemViewContainer(),this.triggerBeforeRender();var e=this.renderModel();return this.$el.html(e),this.bindUIElements(),this.triggerMethod("composite:model:rendered"),this._renderChildren(),this.triggerMethod("composite:rendered"),this.triggerRendered(),this},_renderChildren:function(){this.isRendered&&(o.CollectionView.prototype._renderChildren.call(this),this.triggerMethod("composite:collection:rendered"))},renderModel:function(){var e={};e=this.serializeData(),e=this.mixinTemplateHelpers(e);var t=this.getTemplate();return o.Renderer.render(t,e)},appendHtml:function(e,t){var i=this.getItemViewContainer(e);i.append(t.el)},getItemViewContainer:function(e){if("$itemViewContainer"in e)return e.$itemViewContainer;var t;if(e.itemViewContainer){var n=i.result(e,"itemViewContainer");t=e.$(n),0>=t.length&&r("The specified `itemViewContainer` was not found: "+e.itemViewContainer,"ItemViewContainerMissingError")}else t=e.$el;return e.$itemViewContainer=t,t},resetItemViewContainer:function(){this.$itemViewContainer&&delete this.$itemViewContainer}}),o.Layout=o.ItemView.extend({regionType:o.Region,constructor:function(e){e=e||{},this._firstRender=!0,this._initializeRegions(e),o.ItemView.call(this,e)},render:function(){this._firstRender?this._firstRender=!1:this.isClosed?this._initializeRegions():this._reInitializeRegions();var e=Array.prototype.slice.apply(arguments),t=o.ItemView.prototype.render.apply(this,e);return t},close:function(){if(!this.isClosed){this.regionManager.close();var e=Array.prototype.slice.apply(arguments);o.ItemView.prototype.close.apply(this,e)}},addRegion:function(e,t){var i={};return i[e]=t,this.addRegions(i)[e]},addRegions:function(e){return this.regions=i.extend(this.regions||{},e),this._buildRegions(e)},removeRegion:function(e){return this.regionManager.removeRegion(e)},_buildRegions:function(e){var t=this,i={parentEl:function(){return t.$el}};return this.regionManager.addRegions(e,i)},_initializeRegions:function(e){var t;this._initRegionManager(),t=i.isFunction(this.regions)?this.regions(e):this.regions||{},this.addRegions(t)},_reInitializeRegions:function(){this.regionManager.closeRegions(),this.regionManager.each(function(e){e.reset()})},_initRegionManager:function(){this.regionManager=new o.RegionManager,this.listenTo(this.regionManager,"region:add",function(e,t){this[e]=t,this.trigger("region:add",e,t)}),this.listenTo(this.regionManager,"region:remove",function(e,t){delete this[e],this.trigger("region:remove",e,t)})}}),o.AppRouter=t.Router.extend({constructor:function(e){if(t.Router.prototype.constructor.apply(this,n(arguments)),this.options=e,this.appRoutes){var i=o.getOption(this,"controller");this.processAppRoutes(i,this.appRoutes)}},processAppRoutes:function(e,t){i.each(t,function(t,n){var r=e[t];if(!r)throw Error("Method '"+t+"' was not found on the controller");this.route(n,t,i.bind(r,e))},this)}}),o.Application=function(e){this._initRegionManager(),this._initCallbacks=new o.Callbacks,this.vent=new t.Wreqr.EventAggregator,this.commands=new t.Wreqr.Commands,this.reqres=new t.Wreqr.RequestResponse,this.submodules={},i.extend(this,e),this.triggerMethod=o.triggerMethod},i.extend(o.Application.prototype,t.Events,{execute:function(){var e=Array.prototype.slice.apply(arguments);this.commands.execute.apply(this.commands,e)},request:function(){var e=Array.prototype.slice.apply(arguments);return this.reqres.request.apply(this.reqres,e)},addInitializer:function(e){this._initCallbacks.add(e)},start:function(e){this.triggerMethod("initialize:before",e),this._initCallbacks.run(e,this),this.triggerMethod("initialize:after",e),this.triggerMethod("start",e)},addRegions:function(e){return this._regionManager.addRegions(e)},removeRegion:function(e){this._regionManager.removeRegion(e)},module:function(){var e=n(arguments);return e.unshift(this),o.Module.create.apply(o.Module,e)},_initRegionManager:function(){this._regionManager=new o.RegionManager,this.listenTo(this._regionManager,"region:add",function(e,t){this[e]=t}),this.listenTo(this._regionManager,"region:remove",function(e){delete this[e]})}}),o.Application.extend=o.extend,o.Module=function(e,t){this.moduleName=e,this.submodules={},this._setupInitializersAndFinalizers(),this.app=t,this.startWithParent=!0,this.triggerMethod=o.triggerMethod},i.extend(o.Module.prototype,t.Events,{addInitializer:function(e){this._initializerCallbacks.add(e)},addFinalizer:function(e){this._finalizerCallbacks.add(e)},start:function(e){this._isInitialized||(i.each(this.submodules,function(t){t.startWithParent&&t.start(e)}),this.triggerMethod("before:start",e),this._initializerCallbacks.run(e,this),this._isInitialized=!0,this.triggerMethod("start",e))},stop:function(){this._isInitialized&&(this._isInitialized=!1,o.triggerMethod.call(this,"before:stop"),i.each(this.submodules,function(e){e.stop()}),this._finalizerCallbacks.run(void 0,this),this._initializerCallbacks.reset(),this._finalizerCallbacks.reset(),o.triggerMethod.call(this,"stop"))},addDefinition:function(e,t){this._runModuleDefinition(e,t)},_runModuleDefinition:function(e,n){if(e){var r=i.flatten([this,this.app,t,o,o.$,i,n]);e.apply(this,r)}},_setupInitializersAndFinalizers:function(){this._initializerCallbacks=new o.Callbacks,this._finalizerCallbacks=new o.Callbacks}}),i.extend(o.Module,{create:function(e,t,r){var o=e,s=n(arguments);s.splice(0,3),t=t.split(".");var h=t.length,l=[];return l[h-1]=r,i.each(t,function(t,i){var n=o;o=this._getModule(n,t,e),this._addModuleDefinition(n,o,l[i],s)},this),o},_getModule:function(e,t,i){var n=e[t];return n||(n=new o.Module(t,i),e[t]=n,e.submodules[t]=n),n},_addModuleDefinition:function(e,t,n,r){var o,s;i.isFunction(n)?(o=n,s=!0):i.isObject(n)?(o=n.define,s=n.startWithParent):s=!0,o&&t.addDefinition(o,r),t.startWithParent=t.startWithParent&&s,t.startWithParent&&!t.startWithParentIsConfigured&&(t.startWithParentIsConfigured=!0,e.addInitializer(function(e){t.startWithParent&&t.start(e)}))}}),o}(this,t,e),t.Marionette});
View
2  reports/coverage/index.html
@@ -256,7 +256,7 @@
</div>
</div>
<div class='footer'>
- <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:29:29 GMT-0500 (CDT)</div>
+ <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:35:05 GMT-0500 (CDT)</div>
</div>
</body>
View
2  reports/coverage/spec/javascripts/support/index.html
@@ -230,7 +230,7 @@
</div>
</div>
<div class='footer'>
- <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:29:29 GMT-0500 (CDT)</div>
+ <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:35:05 GMT-0500 (CDT)</div>
</div>
</body>
View
2  reports/coverage/spec/javascripts/support/marionette.support.js.html
@@ -205,7 +205,7 @@
</div>
<div class='footer'>
- <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:29:29 GMT-0500 (CDT)</div>
+ <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:35:05 GMT-0500 (CDT)</div>
</div>
</body>
View
2  reports/coverage/src/build/index.html
@@ -230,7 +230,7 @@
</div>
</div>
<div class='footer'>
- <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:29:29 GMT-0500 (CDT)</div>
+ <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:35:05 GMT-0500 (CDT)</div>
</div>
</body>
View
2  reports/coverage/src/build/marionette.core.js.html
@@ -310,7 +310,7 @@
</div>
<div class='footer'>
- <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:29:29 GMT-0500 (CDT)</div>
+ <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:35:05 GMT-0500 (CDT)</div>
</div>
</body>
View
2  reports/coverage/src/index.html
@@ -451,7 +451,7 @@
</div>
</div>
<div class='footer'>
- <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:29:29 GMT-0500 (CDT)</div>
+ <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:35:05 GMT-0500 (CDT)</div>
</div>
</body>
View
2  reports/coverage/src/marionette.application.js.html
@@ -478,7 +478,7 @@
</div>
<div class='footer'>
- <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:29:29 GMT-0500 (CDT)</div>
+ <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:35:05 GMT-0500 (CDT)</div>
</div>
</body>
View
2  reports/coverage/src/marionette.approuter.js.html
@@ -343,7 +343,7 @@
</div>
<div class='footer'>
- <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:29:29 GMT-0500 (CDT)</div>
+ <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:35:05 GMT-0500 (CDT)</div>
</div>
</body>
View
2  reports/coverage/src/marionette.bindEntityEvents.js.html
@@ -472,7 +472,7 @@
</div>
<div class='footer'>
- <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:29:29 GMT-0500 (CDT)</div>
+ <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:35:05 GMT-0500 (CDT)</div>
</div>
</body>
View
2  reports/coverage/src/marionette.callbacks.js.html
@@ -337,7 +337,7 @@
</div>
<div class='footer'>
- <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:29:29 GMT-0500 (CDT)</div>
+ <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:35:05 GMT-0500 (CDT)</div>
</div>
</body>
View
2  reports/coverage/src/marionette.collectionview.js.html
@@ -991,7 +991,7 @@
</div>
<div class='footer'>
- <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:29:29 GMT-0500 (CDT)</div>
+ <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:35:05 GMT-0500 (CDT)</div>
</div>
</body>
View
2  reports/coverage/src/marionette.compositeview.js.html
@@ -607,7 +607,7 @@
</div>
<div class='footer'>
- <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:29:29 GMT-0500 (CDT)</div>
+ <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:35:05 GMT-0500 (CDT)</div>
</div>
</body>
View
2  reports/coverage/src/marionette.controller.js.html
@@ -286,7 +286,7 @@
</div>
<div class='footer'>
- <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:29:29 GMT-0500 (CDT)</div>
+ <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:35:05 GMT-0500 (CDT)</div>
</div>
</body>
View
2  reports/coverage/src/marionette.domRefresh.js.html
@@ -325,7 +325,7 @@
</div>
<div class='footer'>
- <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:29:29 GMT-0500 (CDT)</div>
+ <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:35:05 GMT-0500 (CDT)</div>
</div>
</body>
View
2  reports/coverage/src/marionette.helpers.js.html
@@ -316,7 +316,7 @@
</div>
<div class='footer'>
- <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:29:29 GMT-0500 (CDT)</div>
+ <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:35:05 GMT-0500 (CDT)</div>
</div>
</body>
View
2  reports/coverage/src/marionette.itemview.js.html
@@ -403,7 +403,7 @@
</div>
<div class='footer'>
- <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:29:29 GMT-0500 (CDT)</div>
+ <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:35:05 GMT-0500 (CDT)</div>
</div>
</body>
View
2  reports/coverage/src/marionette.layout.js.html
@@ -580,7 +580,7 @@
</div>
<div class='footer'>
- <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:29:29 GMT-0500 (CDT)</div>
+ <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:35:05 GMT-0500 (CDT)</div>
</div>
</body>
View
2  reports/coverage/src/marionette.module.js.html
@@ -823,7 +823,7 @@
</div>
<div class='footer'>
- <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:29:29 GMT-0500 (CDT)</div>
+ <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:35:05 GMT-0500 (CDT)</div>
</div>
</body>
View
2  reports/coverage/src/marionette.region.js.html
@@ -763,7 +763,7 @@
</div>
<div class='footer'>
- <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:29:29 GMT-0500 (CDT)</div>
+ <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:35:05 GMT-0500 (CDT)</div>
</div>
</body>
View
2  reports/coverage/src/marionette.regionManager.js.html
@@ -580,7 +580,7 @@
</div>
<div class='footer'>
- <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:29:29 GMT-0500 (CDT)</div>
+ <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:35:05 GMT-0500 (CDT)</div>
</div>
</body>
View
2  reports/coverage/src/marionette.renderer.js.html
@@ -253,7 +253,7 @@
</div>
<div class='footer'>
- <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:29:29 GMT-0500 (CDT)</div>
+ <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:35:05 GMT-0500 (CDT)</div>
</div>
</body>
View
2  reports/coverage/src/marionette.templatecache.js.html
@@ -484,7 +484,7 @@
</div>
<div class='footer'>
- <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:29:29 GMT-0500 (CDT)</div>
+ <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:35:05 GMT-0500 (CDT)</div>
</div>
</body>
View
2  reports/coverage/src/marionette.triggermethod.js.html
@@ -310,7 +310,7 @@
</div>
<div class='footer'>
- <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:29:29 GMT-0500 (CDT)</div>
+ <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:35:05 GMT-0500 (CDT)</div>
</div>
</body>
View
2  reports/coverage/src/marionette.view.js.html
@@ -730,7 +730,7 @@
</div>
<div class='footer'>
- <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:29:29 GMT-0500 (CDT)</div>
+ <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Sun Mar 24 2013 14:35:05 GMT-0500 (CDT)</div>
</div>
</body>
View
7 src/build/amd.core.js
@@ -1,20 +1,19 @@
(function (root, factory) {
if (typeof exports === 'object') {
- var jquery = require('jquery');
var underscore = require('underscore');
var backbone = require('backbone');
var wreqr = require('backbone.wreqr');
var babysitter = require('backbone.babysitter');
- module.exports = factory(jquery, underscore, backbone, wreqr, babysitter);
+ module.exports = factory(underscore, backbone, wreqr, babysitter);
} else if (typeof define === 'function' && define.amd) {
- define(['jquery', 'underscore', 'backbone', 'backbone.wreqr', 'backbone.babysitter'], factory);
+ define(['underscore', 'backbone', 'backbone.wreqr', 'backbone.babysitter'], factory);
}
-}(this, function ($, _, Backbone) {
+}(this, function (_, Backbone) {
// @include marionette.core.js
return Backbone.Marionette;

No commit comments for this range

Something went wrong with that request. Please try again.