Skip to content

Commit

Permalink
build v0.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Derick Bailey committed May 8, 2012
1 parent c6b3513 commit c830e7f
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 12 deletions.
14 changes: 10 additions & 4 deletions lib/amd/backbone.marionette.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Backbone.Marionette v0.8.0
// Backbone.Marionette v0.8.1
//
// Copyright (C)2012 Derick Bailey, Muted Solutions, LLC
// Distributed Under MIT License
Expand All @@ -25,7 +25,7 @@
Backbone.Marionette = (function(Backbone, _, $){
var Marionette = {};

Marionette.version = "0.8.0";
Marionette.version = "0.8.1";

// Marionette.View
// ---------------
Expand Down Expand Up @@ -689,6 +689,11 @@
var length = moduleNames.length;
for(var i = 0; i < length; i++){

// only run the module definition if this is the
// last module in the chaing: "Foo.Bar.Baz" only
// runs the module definition for the "Baz" module
var defineModule = (i === length-1);

// Get the module name, and check if it exists on
// the current parent already
moduleName = moduleNames[i];
Expand All @@ -698,8 +703,9 @@
// Create the module
module = new Marionette.Application();

// And build the module definition
if (moduleDefinition){
// Build the module definition if this is the last
// module specified in the . chain
if (defineModule && moduleDefinition){
moduleOverride = moduleDefinition(module, this, Backbone, Marionette, jQuery, _);
// Override it if necessary
if (moduleOverride){
Expand Down
4 changes: 2 additions & 2 deletions lib/amd/backbone.marionette.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c830e7f

Please sign in to comment.