retina_tag 1.1.7 → 1.1.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -37,6 +37,9 @@ RetinaTag.refreshImage = function(image) {
37
37
  image.src = lowDpiSrc;
38
38
  }
39
39
  };
40
+ if(window.devicePixelRatio !== undefined) {
41
+ RetinaTag.init();
42
+ $(document).ready(RetinaTag.updateImages);
43
+ }
44
+
40
45
 
41
- RetinaTag.init();
42
- $(document).ready(RetinaTag.updateImages);
@@ -1,3 +1,3 @@
1
1
  module RetinaTag
2
- VERSION = "1.1.7"
2
+ VERSION = "1.1.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: retina_tag
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.7
4
+ version: 1.1.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-09 00:00:00.000000000 Z
12
+ date: 2013-02-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -75,7 +75,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
75
75
  version: '0'
76
76
  segments:
77
77
  - 0
78
- hash: -2142793734279988392
78
+ hash: -125970782968344186
79
79
  required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  none: false
81
81
  requirements:
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  version: '0'
85
85
  segments:
86
86
  - 0
87
- hash: -2142793734279988392
87
+ hash: -125970782968344186
88
88
  requirements: []
89
89
  rubyforge_project:
90
90
  rubygems_version: 1.8.24