backbone-marionette-rails 1.0.1 → 1.0.2
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94d02a675ee66c214b8c3207a6c5a95e1562ccb5
|
4
|
+
data.tar.gz: b379d3be981121e528d217798a1d5264fe311e0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b2441682c35fec1438a3fa332f230092a70edfc0fd39989892b88938631ce23fa162e578ea34e3ece8ac31afd2e60f67642620496d3708f09653ede93487eca
|
7
|
+
data.tar.gz: 5593ae1e350cafeef713e4df75b5c30555f9906356e5df5b2f1c8b2eb3cba5afc3354a76457fc1d95a57b5cc635dfe80ef3cdd8aeba5cbeb502380301eb89ab5
|
@@ -1,6 +1,6 @@
|
|
1
1
|
// MarionetteJS (Backbone.Marionette)
|
2
2
|
// ----------------------------------
|
3
|
-
// v1.0.
|
3
|
+
// v1.0.2
|
4
4
|
//
|
5
5
|
// Copyright (c)2013 Derick Bailey, Muted Solutions, LLC.
|
6
6
|
// Distributed under MIT license
|
@@ -17,10 +17,15 @@
|
|
17
17
|
* https://github.com/marionettejs/backbone.wreqr/
|
18
18
|
*/
|
19
19
|
|
20
|
-
// Backbone.BabySitter
|
21
|
-
//
|
20
|
+
// Backbone.BabySitter
|
21
|
+
// -------------------
|
22
|
+
// v0.0.5
|
23
|
+
//
|
24
|
+
// Copyright (c)2013 Derick Bailey, Muted Solutions, LLC.
|
22
25
|
// Distributed under MIT license
|
23
|
-
//
|
26
|
+
//
|
27
|
+
// http://github.com/babysitterjs/backbone.babysitter
|
28
|
+
|
24
29
|
// Backbone.ChildViewContainer
|
25
30
|
// ---------------------------
|
26
31
|
//
|
@@ -1330,15 +1335,16 @@ Marionette.View = Backbone.View.extend({
|
|
1330
1335
|
return;
|
1331
1336
|
}
|
1332
1337
|
|
1333
|
-
// unbind UI elements
|
1334
|
-
this.unbindUIElements();
|
1335
|
-
|
1336
1338
|
// mark as closed before doing the actual close, to
|
1337
1339
|
// prevent infinite loops within "close" event handlers
|
1338
1340
|
// that are trying to close other views
|
1339
1341
|
this.isClosed = true;
|
1340
1342
|
this.triggerMethod("close");
|
1341
1343
|
|
1344
|
+
// unbind UI elements
|
1345
|
+
this.unbindUIElements();
|
1346
|
+
|
1347
|
+
// remove the view from the DOM
|
1342
1348
|
this.remove();
|
1343
1349
|
},
|
1344
1350
|
|
@@ -2011,8 +2017,11 @@ Marionette.AppRouter = Backbone.Router.extend({
|
|
2011
2017
|
// Internal method to process the `appRoutes` for the
|
2012
2018
|
// router, and turn them in to routes that trigger the
|
2013
2019
|
// specified method on the specified `controller`.
|
2014
|
-
processAppRoutes: function(controller, appRoutes){
|
2015
|
-
_.
|
2020
|
+
processAppRoutes: function(controller, appRoutes) {
|
2021
|
+
var routeNames = _.keys(appRoutes).reverse(); // Backbone requires reverted order of routes
|
2022
|
+
|
2023
|
+
_.each(routeNames, function(route) {
|
2024
|
+
var methodName = appRoutes[route];
|
2016
2025
|
var method = controller[methodName];
|
2017
2026
|
|
2018
2027
|
if (!method) {
|
@@ -2328,4 +2337,4 @@ _.extend(Marionette.Module, {
|
|
2328
2337
|
|
2329
2338
|
|
2330
2339
|
return Marionette;
|
2331
|
-
})(this, Backbone, _);
|
2340
|
+
})(this, Backbone, _);
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: backbone-marionette-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yujing Zheng
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-03-
|
11
|
+
date: 2013-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Vendors Backbone.Marionette Library to Rails
|
14
14
|
email:
|