marionette-rails 0.10.0 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
|
|
1
|
-
// Backbone.Marionette, v0.10.
|
1
|
+
// Backbone.Marionette, v0.10.1
|
2
2
|
// Copyright (c)2012 Derick Bailey, Muted Solutions, LLC.
|
3
3
|
// Distributed under MIT license
|
4
4
|
// http://github.com/derickbailey/backbone.marionette
|
@@ -1131,14 +1131,13 @@ _.extend(Marionette.Module, {
|
|
1131
1131
|
var length = moduleNames.length;
|
1132
1132
|
_.each(moduleNames, function(moduleName, i){
|
1133
1133
|
var isLastModuleInChain = (i === length-1);
|
1134
|
-
var isFirstModuleInChain = (i === 0);
|
1135
1134
|
|
1136
1135
|
var module = that._getModuleDefinition(parentModule, moduleName, app, customArgs);
|
1137
1136
|
module.config.options = that._getModuleOptions(parentModule, moduleDefinition);
|
1138
1137
|
|
1139
1138
|
// if it's the first module in the chain, configure it
|
1140
1139
|
// for auto-start, as specified by the options
|
1141
|
-
if (
|
1140
|
+
if (isLastModuleInChain){
|
1142
1141
|
that._configureAutoStart(app, module);
|
1143
1142
|
}
|
1144
1143
|
|