openseadragon 0.3.0 → 0.3.1

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: 9480e26218ffc1b7fb23ae6f2bd6a9c1b86b6321
4
- data.tar.gz: f01dc45ed77df9f769b7df2b42a52d3f32f9f25d
3
+ metadata.gz: ce3ebd709c89fd89d07115269d48750dd7a3effe
4
+ data.tar.gz: 84b84221757261ae53acd7576f35f415654848cf
5
5
  SHA512:
6
- metadata.gz: c92ff00607ae8cffc014257551e05757f4430e8143b33c53f375fb6da80672aff4bcd54b8a55c79d679d5d3aa2447d68f05051411922229842073d6e638c54c9
7
- data.tar.gz: bf2d25c74a4b965fc7ea2982b462cb571bcf96c36bb045314b0afcacac08bd3b061de1a8218a5a43748563602664749c448e6cd6d6a45ecc59ba1c35f6423517
6
+ metadata.gz: dd13ddadfae99e261fd50fe7b98706ba42c525b525a66b31fc4c0ae19bb2b279c5096dc58c5181c995c3ee23f6d7642cdce5333b95dc283bfed3dd41b6ac43cc
7
+ data.tar.gz: 0e7bb1716d8ad0c8d9020d2c129a99a4fd73bb35c6978ab7442a204cbabc7a49d2b2e8b42439d93d346f8365746c00bcd51e53ebeea7a57333394e4dd3221537
@@ -7,4 +7,16 @@
7
7
 
8
8
  $(document).on('page:load', initOpenSeadragon);
9
9
  $(document).ready(initOpenSeadragon);
10
- })(jQuery);
10
+
11
+ var handler = 'ready';
12
+ if (typeof Turbolinks !== 'undefined' && Turbolinks.supported) {
13
+ // Turbolinks 5
14
+ if (Turbolinks.BrowserAdapter) {
15
+ handler = 'turbolinks:load';
16
+ } else {
17
+ // Turbolinks < 5
18
+ handler = 'page:load ready';
19
+ }
20
+ }
21
+ $(document).on(handler, initOpenSeadragon);
22
+ })(jQuery);
@@ -1,3 +1,3 @@
1
1
  module Openseadragon
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openseadragon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-08-01 00:00:00.000000000 Z
13
+ date: 2016-11-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler