magnific-popup-rails 0.9.3 → 0.9.4

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: ec7f564e5818c04d199b66e9ae0697826be4cadc
4
- data.tar.gz: 3b72f9ce7ca69fa517b7d9e6e2aa7fbdeb957ce3
3
+ metadata.gz: 5cc8b8bc89dfb4d6c2e1b0f10e7075845c5c9f03
4
+ data.tar.gz: c67bd32477666ac9da23380d552576ab47bb110d
5
5
  SHA512:
6
- metadata.gz: 2d8d02290428074f7f860917966e6d72b6ac63f8773aba05f4f67fd8725c60144b877bc71db5121db6be4cc51417be00ccf8bdd8ffbe01b40c44ca20d69e0fb6
7
- data.tar.gz: 3d9fdc61d4dd3397c4d9f4838c9e6ba7e7ee4ef45a5f510cd95b9648d714a773f6828dc56db3e482146cb07ae25aa7d2ef436c2b8d56ecb8f137887023eaf2c8
6
+ metadata.gz: bc43e875bd28e24f43fc7b82ad056d2a8e66998693626bcb71f0bbe532a3ed5675c8f6db824ba7bdf3c1aa6907943c3654522c5dc06537cd3c34c8c7cfb27e44
7
+ data.tar.gz: 6e3f6220b241a6110b003c9c4a76d59385bfc9fdab734c2273d677a7f0614323f4b28eb4a3110eb8acdbe4cfd2e506964fa7ce3a7aaff16ec499d53efe106871
@@ -1,5 +1,5 @@
1
1
  module MagnificPopup
2
2
  module Rails
3
- VERSION = "0.9.3"
3
+ VERSION = "0.9.4"
4
4
  end
5
5
  end
@@ -1,4 +1,4 @@
1
- /*! Magnific Popup - v0.9.3 - 2013-07-16
1
+ /*! Magnific Popup - v0.9.4 - 2013-08-07
2
2
  * http://dimsemenov.com/plugins/magnific-popup/
3
3
  * Copyright (c) 2013 Dmitry Semenov; */
4
4
  ;(function($) {
@@ -1183,7 +1183,7 @@ $.magnificPopup.registerModule('image', {
1183
1183
  },
1184
1184
  resizeImage: function() {
1185
1185
  var item = mfp.currItem;
1186
- if(!item.img) return;
1186
+ if(!item || !item.img) return;
1187
1187
 
1188
1188
  if(mfp.st.image.verticalFit) {
1189
1189
  var decr = 0;
@@ -1307,7 +1307,7 @@ $.magnificPopup.registerModule('image', {
1307
1307
 
1308
1308
  var el = template.find('.mfp-img');
1309
1309
  if(el.length) {
1310
- var img = new Image();
1310
+ var img = document.createElement('img');
1311
1311
  img.className = 'mfp-img';
1312
1312
  item.img = $(img).on('load.mfploader', onLoadComplete).on('error.mfploader', onLoadError);
1313
1313
  img.src = item.src;
@@ -297,7 +297,7 @@ img.mfp-img {
297
297
  text-align: left;
298
298
  line-height: 18px;
299
299
  color: #f3f3f3;
300
- word-break: break-word;
300
+ word-wrap: break-word;
301
301
  padding-right: 36px; }
302
302
 
303
303
  .mfp-figure small {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magnific-popup-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Jansen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-22 00:00:00.000000000 Z
11
+ date: 2013-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake