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 +4 -4
- data/lib/holder_rails/version.rb +1 -1
- data/vendor/assets/javascripts/holder.js +9 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19c45c9631f1fea2be54fa296d8010fb0c42910a
|
4
|
+
data.tar.gz: 8b6d3fa95200977f01459a64135f16331963f6fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a7b99c7d5b4c87ffd06309ffe3f66cd60b0c0cf7e25230b44a01e3cb6f644527b0e37e2fb9452a2d5586b4d03e2597b7fb7ce516a19f88d071079614ab91f6e
|
7
|
+
data.tar.gz: 27a6b401c6c07a9fc8d3f4870ca5c78a0054ae2dd3d36e1dfbf84658e20752a3d798aa1b5591cbc77d6e306efc3d944ab5156ccb07589a722be132144c970745
|
data/lib/holder_rails/version.rb
CHANGED
@@ -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
|
-
|
158
|
-
svg.
|
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);
|