holder_rails 2.3.0 → 2.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: 3da663fd410589a49f7a76619dce16e13366e2a8
4
- data.tar.gz: b40a90454d388b61a624dc0c879d093f48d2e5a3
3
+ metadata.gz: 19c45c9631f1fea2be54fa296d8010fb0c42910a
4
+ data.tar.gz: 8b6d3fa95200977f01459a64135f16331963f6fd
5
5
  SHA512:
6
- metadata.gz: 054eaf54f3e1eff00e96f9dd4452c41f36cb80d83b557c7f494d52702f8dd0533b9ff4d1ab2951955974959f0c90a799f514fa9012ef753ae3826b25810d3975
7
- data.tar.gz: bcc3c6d368097eceda372161e27e2f574d1b640d57964fc803f7a7feff2b18f04519815250cd8208556382a4398aeabeeba9bbfb2ec9ff0c0e84fb1f87383c2c
6
+ metadata.gz: 6a7b99c7d5b4c87ffd06309ffe3f66cd60b0c0cf7e25230b44a01e3cb6f644527b0e37e2fb9452a2d5586b4d03e2597b7fb7ce516a19f88d071079614ab91f6e
7
+ data.tar.gz: 27a6b401c6c07a9fc8d3f4870ca5c78a0054ae2dd3d36e1dfbf84658e20752a3d798aa1b5591cbc77d6e306efc3d944ab5156ccb07589a722be132144c970745
@@ -1,3 +1,3 @@
1
1
  module HolderRails
2
- VERSION = "2.3.0"
2
+ VERSION = "2.3.1"
3
3
  end
@@ -1,6 +1,6 @@
1
- /*
1
+ /*!
2
2
 
3
- Holder - 2.3 - client side image placeholders
3
+ Holder - 2.3.1 - client side image placeholders
4
4
  (c) 2012-2014 Ivan Malopinsky / http://imsky.co
5
5
 
6
6
  Provided under the MIT License.
@@ -9,7 +9,6 @@ Commercial use requires attribution.
9
9
  */
10
10
  var Holder = Holder || {};
11
11
  (function (app, win) {
12
-
13
12
  var system_config = {
14
13
  use_svg: false,
15
14
  use_canvas: false,
@@ -151,11 +150,15 @@ function text_size(width, height, template) {
151
150
  }
152
151
 
153
152
  var svg_el = (function(){
153
+ //Prevent IE <9 from initializing SVG renderer
154
+ if(!window.XMLSerializer) return;
154
155
  var serializer = new XMLSerializer();
155
156
  var svg_ns = "http://www.w3.org/2000/svg"
156
157
  var svg = document.createElementNS(svg_ns, "svg");
157
- svg.setAttribute("xmlns", "http://www.w3.org/2000/svg")
158
- svg.setAttribute("xmlns:xlink", "http://www.w3.org/1999/xlink");
158
+ //IE throws an exception if this is set and Chrome requires it to be set
159
+ if(svg.webkitMatchesSelector){
160
+ svg.setAttribute("xmlns", "http://www.w3.org/2000/svg")
161
+ }
159
162
  var bg_el = document.createElementNS(svg_ns, "rect")
160
163
  var text_el = document.createElementNS(svg_ns, "text")
161
164
  var textnode_el = document.createTextNode(null)
@@ -163,7 +166,7 @@ var svg_el = (function(){
163
166
  text_el.appendChild(textnode_el)
164
167
  svg.appendChild(bg_el)
165
168
  svg.appendChild(text_el)
166
-
169
+
167
170
  return function(props){
168
171
  svg.setAttribute("width",props.width);
169
172
  svg.setAttribute("height", props.height);
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: holder_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nihad Abbasov