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: 1568049ea861f1d56b2649ee33d42105084f6bd8
4
- data.tar.gz: 2c79b1f585cda28b3403e49db6341fc60d085ccd
3
+ metadata.gz: ff8aeea31b186e5a58b421b916a38c9bf2c9d1af
4
+ data.tar.gz: 847c46ac103806febfaf92b055d13e80a9a7a139
5
5
  SHA512:
6
- metadata.gz: d78a622c05ee5d86b0d9f173cc0a2739248560b356a301dc03430bb03d6d85a8ecc5140ae10aa3e77c93ca3ac0bd455b821a60d843b99d1c86665e7a7c0ea85f
7
- data.tar.gz: 350d1c5ad2671f48bb7a6e0a66ad6513a0ca68fa6133fc31dd235dffd2aeb7085e4c414e714b3eb892451773a4a85c2f456723d3bbd178a9e38f52d7876d1024
6
+ metadata.gz: 47c0530ed51deb149b2493444352100b0fb45c7da347c56cda0711a434ff1846d8ea80cd1b30a6619294d427df81c8c623cce68d65fdd97649b9367bb581920a
7
+ data.tar.gz: f8e9165c21d1562a9a83408ff83f6846d0e5964118c9cbe4778ab1ea11459f988b3be1e6f901b54df55085d2e988e6e33d36bc8a065220c6b5b0af7f89438ebf
@@ -1,7 +1,7 @@
1
1
  module Marionette
2
2
  module DialogRegion
3
3
  module Rails
4
- VERSION = "0.0.2"
4
+ VERSION = "0.0.3"
5
5
  end
6
6
  end
7
7
  end
@@ -20,7 +20,12 @@ do (Backbone, Marionette, $) ->
20
20
  @oldView = @currentView
21
21
  onClosed: =>
22
22
  if @oldView == @currentView
23
- @oldView.close()
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.2
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-16 00:00:00.000000000 Z
11
+ date: 2014-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties