marionette-dialogregion-rails 0.0.2 → 0.0.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff8aeea31b186e5a58b421b916a38c9bf2c9d1af
|
4
|
+
data.tar.gz: 847c46ac103806febfaf92b055d13e80a9a7a139
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47c0530ed51deb149b2493444352100b0fb45c7da347c56cda0711a434ff1846d8ea80cd1b30a6619294d427df81c8c623cce68d65fdd97649b9367bb581920a
|
7
|
+
data.tar.gz: f8e9165c21d1562a9a83408ff83f6846d0e5964118c9cbe4778ab1ea11459f988b3be1e6f901b54df55085d2e988e6e33d36bc8a065220c6b5b0af7f89438ebf
|
@@ -20,7 +20,12 @@ do (Backbone, Marionette, $) ->
|
|
20
20
|
@oldView = @currentView
|
21
21
|
onClosed: =>
|
22
22
|
if @oldView == @currentView
|
23
|
-
|
23
|
+
# VERSION was added in 2.0, so that's enough
|
24
|
+
# to know if we need close() or destroy()
|
25
|
+
if Marionette.VERSION
|
26
|
+
@oldView.destroy()
|
27
|
+
else
|
28
|
+
@oldView.close()
|
24
29
|
|
25
30
|
@listenTo view, 'close', ->
|
26
31
|
$.colorbox.remove()
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: marionette-dialogregion-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Louis Simoneau
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|