backbone-marionette-rails 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0945d593536da471a9ef33e4d2497f62a788e856
4
- data.tar.gz: c4764defcd4105080f613a12095165f426cbe4f8
3
+ metadata.gz: 94d02a675ee66c214b8c3207a6c5a95e1562ccb5
4
+ data.tar.gz: b379d3be981121e528d217798a1d5264fe311e0c
5
5
  SHA512:
6
- metadata.gz: af35db2132767695a9a5df6d5d8321f1298ad73e829c17f2077f936653ea43c9bb479d283c6c5519522a96236e7c68807a042c10176d8866ded40e2b5d555d31
7
- data.tar.gz: e1b7bbb931458a0e760c279ea9140b9e90d2fad27f7b58ebd8325a24e4b8bc9bdbfa621e4befdb8428e74fb39051ea610cef8671dece8adccb35f5ccff563539
6
+ metadata.gz: 1b2441682c35fec1438a3fa332f230092a70edfc0fd39989892b88938631ce23fa162e578ea34e3ece8ac31afd2e60f67642620496d3708f09653ede93487eca
7
+ data.tar.gz: 5593ae1e350cafeef713e4df75b5c30555f9906356e5df5b2f1c8b2eb3cba5afc3354a76457fc1d95a57b5cc635dfe80ef3cdd8aeba5cbeb502380301eb89ab5
@@ -1,7 +1,7 @@
1
1
  module Backbone
2
2
  module Marionette
3
3
  module Rails
4
- VERSION = "1.0.1"
4
+ VERSION = "1.0.2"
5
5
  end
6
6
  end
7
7
  end
@@ -1,6 +1,6 @@
1
1
  // MarionetteJS (Backbone.Marionette)
2
2
  // ----------------------------------
3
- // v1.0.1
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, v0.0.4
21
- // Copyright (c)2012 Derick Bailey, Muted Solutions, LLC.
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
- // http://github.com/marionettejs/backbone.babysitter
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
- _.each(appRoutes, function(methodName, route) {
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.1
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-25 00:00:00.000000000 Z
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: