Skip to content

Commit

Permalink
v1.2.3 bump and build
Browse files Browse the repository at this point in the history
  • Loading branch information
samccone committed Nov 14, 2013
1 parent cf0491e commit 3761df5
Show file tree
Hide file tree
Showing 36 changed files with 166 additions and 126 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.2.2",
"version" : "1.2.3",

"keywords" : [
"backbone",
Expand Down
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### v1.2.3 [view commit logs](https://github.com/marionettejs/backbone.marionette/compare/v1.2.2...v1.2.3)
* CompositeView
* Fixed bug where ```child views``` were being added before the initial render, thus raising errors.

### v1.2.2 [view commit logs](https://github.com/marionettejs/backbone.marionette/compare/v1.2.1...v1.2.2)
* Views
* Move the instantiation of ```view``` options above the ```constructor``` This allows for view options to be accessed from within the ```initialize``` method for a given ```view```
Expand Down
18 changes: 12 additions & 6 deletions lib/backbone.marionette.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// MarionetteJS (Backbone.Marionette)
// ----------------------------------
// v1.2.2
// v1.2.3
//
// Copyright (c)2013 Derick Bailey, Muted Solutions, LLC.
// Distributed under MIT license
Expand Down Expand Up @@ -1750,11 +1750,17 @@ Marionette.CompositeView = Marionette.CollectionView.extend({
// binds to. Override this method to prevent the initial
// events, or to add your own initial events.
_initialEvents: function(){
if (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);
}

// Bind only after composite view in rendered to avoid adding child views
// to unexisting itemViewContainer
this.once('render', function () {
if (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);
}
});

},

// Retrieve the `itemView` to be used when rendering each of
Expand Down
2 changes: 1 addition & 1 deletion lib/backbone.marionette.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lib/backbone.marionette.min.js

Large diffs are not rendered by default.

18 changes: 12 additions & 6 deletions lib/core/amd/backbone.marionette.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// MarionetteJS (Backbone.Marionette)
// ----------------------------------
// v1.2.2
// v1.2.3
//
// Copyright (c)2013 Derick Bailey, Muted Solutions, LLC.
// Distributed under MIT license
Expand Down Expand Up @@ -1342,11 +1342,17 @@ Marionette.CompositeView = Marionette.CollectionView.extend({
// binds to. Override this method to prevent the initial
// events, or to add your own initial events.
_initialEvents: function(){
if (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);
}

// Bind only after composite view in rendered to avoid adding child views
// to unexisting itemViewContainer
this.once('render', function () {
if (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);
}
});

},

// Retrieve the `itemView` to be used when rendering each of
Expand Down
4 changes: 2 additions & 2 deletions lib/core/amd/backbone.marionette.min.js

Large diffs are not rendered by default.

16 changes: 11 additions & 5 deletions lib/core/backbone.marionette.js
Original file line number Diff line number Diff line change
Expand Up @@ -1306,11 +1306,17 @@ Marionette.CompositeView = Marionette.CollectionView.extend({
// binds to. Override this method to prevent the initial
// events, or to add your own initial events.
_initialEvents: function(){
if (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);
}

// Bind only after composite view in rendered to avoid adding child views
// to unexisting itemViewContainer
this.once('render', function () {
if (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);
}
});

},

// Retrieve the `itemView` to be used when rendering each of
Expand Down
2 changes: 1 addition & 1 deletion lib/core/backbone.marionette.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lib/core/backbone.marionette.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "backbone.marionette",
"description": "Make your Backbone.js apps dance!",
"version": "1.2.2",
"version": "1.2.3",
"homepage": "https://github.com/marionettejs/backbone.marionette",
"main": "lib/core/amd/backbone.marionette.js",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion reports/coverage.json

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions reports/coverage/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -183,16 +183,16 @@
<h1>Code coverage report for <span class="entity">All files</span></h1>
<h2>

Statements: <span class="metric">98.33% <small>(648 / 659)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
Statements: <span class="metric">98.33% <small>(649 / 660)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;


Branches: <span class="metric">94.38% <small>(235 / 249)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
Branches: <span class="metric">93.98% <small>(234 / 249)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;


Functions: <span class="metric">98.84% <small>(170 / 172)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
Functions: <span class="metric">98.84% <small>(171 / 173)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;


Lines: <span class="metric">98.9% <small>(629 / 636)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
Lines: <span class="metric">98.9% <small>(630 / 637)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;

</h2>
<div class="path"></div>
Expand Down Expand Up @@ -231,13 +231,13 @@ <h2>
<td class="file high" data-value="src/"><a href="src/index.html">src/</a></td>
<td data-value="98.32" class="pic high"><span class="cover-fill" style="width: 98px;"></span><span class="cover-empty" style="width:2px;"></span></td>
<td data-value="98.32" class="pct high">98.32%</td>
<td data-value="653" class="abs high">(642&nbsp;/&nbsp;653)</td>
<td data-value="94.38" class="pct high">94.38%</td>
<td data-value="249" class="abs high">(235&nbsp;/&nbsp;249)</td>
<td data-value="98.83" class="pct high">98.83%</td>
<td data-value="171" class="abs high">(169&nbsp;/&nbsp;171)</td>
<td data-value="654" class="abs high">(643&nbsp;/&nbsp;654)</td>
<td data-value="93.98" class="pct high">93.98%</td>
<td data-value="249" class="abs high">(234&nbsp;/&nbsp;249)</td>
<td data-value="98.84" class="pct high">98.84%</td>
<td data-value="172" class="abs high">(170&nbsp;/&nbsp;172)</td>
<td data-value="98.89" class="pct high">98.89%</td>
<td data-value="630" class="abs high">(623&nbsp;/&nbsp;630)</td>
<td data-value="631" class="abs high">(624&nbsp;/&nbsp;631)</td>
</tr>

<tr>
Expand All @@ -258,7 +258,7 @@ <h2>
</div>
</div>
<div class="footer">
<div class="meta">Generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Oct 31 2013 17:36:07 GMT-0400 (EDT)</div>
<div class="meta">Generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Nov 13 2013 22:13:46 GMT-0500 (EST)</div>
</div>

<script src="prettify.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion reports/coverage/spec/javascripts/support/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ <h2>
</div>
</div>
<div class="footer">
<div class="meta">Generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Oct 31 2013 17:36:07 GMT-0400 (EDT)</div>
<div class="meta">Generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Nov 13 2013 22:13:46 GMT-0500 (EST)</div>
</div>

<script src="../../../prettify.js"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ <h2>

</div>
<div class="footer">
<div class="meta">Generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Oct 31 2013 17:36:07 GMT-0400 (EDT)</div>
<div class="meta">Generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Nov 13 2013 22:13:46 GMT-0500 (EST)</div>
</div>

<script src="../../../prettify.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion reports/coverage/src/build/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ <h2>
</div>
</div>
<div class="footer">
<div class="meta">Generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Oct 31 2013 17:36:07 GMT-0400 (EDT)</div>
<div class="meta">Generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Nov 13 2013 22:13:46 GMT-0500 (EST)</div>
</div>

<script src="../../prettify.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion reports/coverage/src/build/marionette.core.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ <h2>

</div>
<div class="footer">
<div class="meta">Generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Oct 31 2013 17:36:07 GMT-0400 (EDT)</div>
<div class="meta">Generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Nov 13 2013 22:13:46 GMT-0500 (EST)</div>
</div>

<script src="../../prettify.js"></script>
Expand Down
26 changes: 13 additions & 13 deletions reports/coverage/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -183,16 +183,16 @@
<h1>Code coverage report for <span class="entity">src/</span></h1>
<h2>

Statements: <span class="metric">98.32% <small>(642 / 653)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
Statements: <span class="metric">98.32% <small>(643 / 654)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;


Branches: <span class="metric">94.38% <small>(235 / 249)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
Branches: <span class="metric">93.98% <small>(234 / 249)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;


Functions: <span class="metric">98.83% <small>(169 / 171)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
Functions: <span class="metric">98.84% <small>(170 / 172)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;


Lines: <span class="metric">98.89% <small>(623 / 630)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
Lines: <span class="metric">98.89% <small>(624 / 631)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;

</h2>
<div class="path"><a href="../index.html">All files</a> &#187; src/</div>
Expand Down Expand Up @@ -281,15 +281,15 @@ <h2>

<tr>
<td class="file high" data-value="marionette.compositeview.js"><a href="marionette.compositeview.js.html">marionette.compositeview.js</a></td>
<td data-value="98" class="pic high"><span class="cover-fill" style="width: 98px;"></span><span class="cover-empty" style="width:2px;"></span></td>
<td data-value="98" class="pct high">98%</td>
<td data-value="50" class="abs high">(49&nbsp;/&nbsp;50)</td>
<td data-value="90" class="pct high">90%</td>
<td data-value="20" class="abs high">(18&nbsp;/&nbsp;20)</td>
<td data-value="98.04" class="pic high"><span class="cover-fill" style="width: 98px;"></span><span class="cover-empty" style="width:2px;"></span></td>
<td data-value="98.04" class="pct high">98.04%</td>
<td data-value="51" class="abs high">(50&nbsp;/&nbsp;51)</td>
<td data-value="85" class="pct high">85%</td>
<td data-value="20" class="abs high">(17&nbsp;/&nbsp;20)</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="10" class="abs high">(10&nbsp;/&nbsp;10)</td>
<td data-value="98" class="pct high">98%</td>
<td data-value="50" class="abs high">(49&nbsp;/&nbsp;50)</td>
<td data-value="11" class="abs high">(11&nbsp;/&nbsp;11)</td>
<td data-value="98.04" class="pct high">98.04%</td>
<td data-value="51" class="abs high">(50&nbsp;/&nbsp;51)</td>
</tr>

<tr>
Expand Down Expand Up @@ -453,7 +453,7 @@ <h2>
</div>
</div>
<div class="footer">
<div class="meta">Generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Oct 31 2013 17:36:07 GMT-0400 (EDT)</div>
<div class="meta">Generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Nov 13 2013 22:13:46 GMT-0500 (EST)</div>
</div>

<script src="../prettify.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion reports/coverage/src/marionette.application.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ <h2>

</div>
<div class="footer">
<div class="meta">Generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Oct 31 2013 17:36:07 GMT-0400 (EDT)</div>
<div class="meta">Generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Nov 13 2013 22:13:46 GMT-0500 (EST)</div>
</div>

<script src="../prettify.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion reports/coverage/src/marionette.approuter.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ <h2>

</div>
<div class="footer">
<div class="meta">Generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Oct 31 2013 17:36:07 GMT-0400 (EDT)</div>
<div class="meta">Generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Nov 13 2013 22:13:46 GMT-0500 (EST)</div>
</div>

<script src="../prettify.js"></script>
Expand Down
8 changes: 4 additions & 4 deletions reports/coverage/src/marionette.bindEntityEvents.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ <h2>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1</span>
<span class="cline-any cline-yes">2015</span>
<span class="cline-any cline-yes">2031</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">74</span>
Expand All @@ -371,11 +371,11 @@ <h2>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1</span>
<span class="cline-any cline-yes">1003</span>
<span class="cline-any cline-yes">1011</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1</span>
<span class="cline-any cline-yes">1012</span>
<span class="cline-any cline-yes">1020</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
Expand Down Expand Up @@ -474,7 +474,7 @@ <h2>

</div>
<div class="footer">
<div class="meta">Generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Oct 31 2013 17:36:07 GMT-0400 (EDT)</div>
<div class="meta">Generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Nov 13 2013 22:13:46 GMT-0500 (EST)</div>
</div>

<script src="../prettify.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion reports/coverage/src/marionette.callbacks.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ <h2>

</div>
<div class="footer">
<div class="meta">Generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Oct 31 2013 17:36:07 GMT-0400 (EDT)</div>
<div class="meta">Generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Nov 13 2013 22:13:46 GMT-0500 (EST)</div>
</div>

<script src="../prettify.js"></script>
Expand Down
10 changes: 5 additions & 5 deletions reports/coverage/src/marionette.collectionview.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -479,11 +479,11 @@ <h2>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">139</span>
<span class="cline-any cline-yes">143</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">139</span>
<span class="cline-any cline-yes">143</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">139</span>
<span class="cline-any cline-yes">143</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
Expand Down Expand Up @@ -710,7 +710,7 @@ <h2>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">139</span>
<span class="cline-any cline-yes">143</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
Expand Down Expand Up @@ -1008,7 +1008,7 @@ <h2>

</div>
<div class="footer">
<div class="meta">Generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Oct 31 2013 17:36:07 GMT-0400 (EDT)</div>
<div class="meta">Generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Nov 13 2013 22:13:46 GMT-0500 (EST)</div>
</div>

<script src="../prettify.js"></script>
Expand Down
Loading

0 comments on commit 3761df5

Please sign in to comment.