marionette-rails 0.9.6.1 → 0.9.7
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
|
|
1
|
-
// Backbone.Marionette v0.9.
|
1
|
+
// Backbone.Marionette v0.9.7
|
2
2
|
//
|
3
3
|
// Copyright (C)2012 Derick Bailey, Muted Solutions, LLC
|
4
4
|
// Distributed Under MIT License
|
@@ -1003,6 +1003,9 @@ _.extend(Marionette.Module.prototype, Backbone.Events, {
|
|
1003
1003
|
|
1004
1004
|
// Start the module, and run all of it's initializers
|
1005
1005
|
start: function(options){
|
1006
|
+
// Prevent re-start the module
|
1007
|
+
if (this._isInitialized){ return; }
|
1008
|
+
|
1006
1009
|
this._runModuleDefinition();
|
1007
1010
|
this._initializerCallbacks.run(options, this);
|
1008
1011
|
this._isInitialized = true;
|
@@ -1010,7 +1013,7 @@ _.extend(Marionette.Module.prototype, Backbone.Events, {
|
|
1010
1013
|
// start the sub-modules
|
1011
1014
|
if (this.submodules){
|
1012
1015
|
_.each(this.submodules, function(mod){
|
1013
|
-
mod.start();
|
1016
|
+
mod.start(options);
|
1014
1017
|
});
|
1015
1018
|
}
|
1016
1019
|
},
|
@@ -1257,7 +1260,7 @@ Marionette.Renderer = {
|
|
1257
1260
|
// template function. Override this method to provide your own
|
1258
1261
|
// custom rendering and template handling for all of Marionette.
|
1259
1262
|
render: function(template, data){
|
1260
|
-
var templateFunc = Marionette.TemplateCache.get(template);
|
1263
|
+
var templateFunc = typeof template === 'function' ? template : Marionette.TemplateCache.get(template);
|
1261
1264
|
var html = templateFunc(data);
|
1262
1265
|
return html;
|
1263
1266
|
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: marionette-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-08-
|
12
|
+
date: 2012-08-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|