Skip to content

Commit d4ff2d5

Browse files
committed
1.7.7
- fixed imageBase issue in picture plugin
1 parent 11ebed9 commit d4ff2d5

9 files changed

+16
-16
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ Some examples below:
6565
Lazy and all plugins are available over [cdnjs](http://cdnjs.com) and [jsDelivr](http://jsdelivr.com) CDN and can directly included to every page.
6666
```HTML
6767
<!-- jsDeliver -->
68-
<script type="text/javascript" src="//cdn.jsdelivr.net/gh/eisbehr-/jquery.lazy@1.7.6/jquery.lazy.min.js"></script>
69-
<script type="text/javascript" src="//cdn.jsdelivr.net/gh/eisbehr-/jquery.lazy@1.7.6/jquery.lazy.plugins.min.js"></script>
68+
<script type="text/javascript" src="//cdn.jsdelivr.net/gh/eisbehr-/jquery.lazy@1.7.7/jquery.lazy.min.js"></script>
69+
<script type="text/javascript" src="//cdn.jsdelivr.net/gh/eisbehr-/jquery.lazy@1.7.7/jquery.lazy.plugins.min.js"></script>
7070

7171
<!-- cdnjs -->
72-
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery.lazy/1.7.6/jquery.lazy.min.js"></script>
73-
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery.lazy/1.7.6/jquery.lazy.plugins.min.js"></script>
72+
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery.lazy/1.7.7/jquery.lazy.min.js"></script>
73+
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery.lazy/1.7.7/jquery.lazy.plugins.min.js"></script>
7474
```
7575

7676
#### Self-Hosted

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "jquery-lazy",
33
"description": "Lazy is a fast, feature-rich and lightweight delayed content loading plugin for jQuery and Zepto. It's designed to speed up page loading times and decrease traffic to your users by only loading the content in view. You can use Lazy in all vertical and horizontal scroll ways. It supports images in 'img' tags and backgrounds, supplied with css like 'background-image', by default. On those elements Lazy can set an default image or a placeholder while loading and supports retina displays as well. But Lazy is even able to load any other content you want by plugins and custom loaders.",
4-
"version": "1.7.6",
4+
"version": "1.7.7",
55
"main": "jquery.lazy.min.js",
66
"license": [
77
"MIT",

jquery.lazy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* jQuery & Zepto Lazy - v1.7.6
2+
* jQuery & Zepto Lazy - v1.7.7
33
* http://jquery.eisbehr.de/lazy/
44
*
55
* Copyright 2012 - 2017, Daniel 'Eisbehr' Kern

jquery.lazy.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jquery.lazy.plugins.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@
302302
})(window.jQuery || window.Zepto);
303303

304304
/*!
305-
* jQuery & Zepto Lazy - Picture Plugin - v1.2
305+
* jQuery & Zepto Lazy - Picture Plugin - v1.3
306306
* http://jquery.eisbehr.de/lazy/
307307
*
308308
* Copyright 2012 - 2017, Daniel 'Eisbehr' Kern
@@ -339,7 +339,7 @@
339339
if( elementTagName === "picture" ) {
340340
var sources = element.find(srcAttr),
341341
image = element.find("data-img"),
342-
imageBase = this.config("imageBase");
342+
imageBase = this.config("imageBase") || "";
343343

344344
// handle as child elements
345345
if( sources.length ) {

jquery.lazy.plugins.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "jquery-lazy",
33
"title": "jQuery & Zepto Lazy - Delayed Content, Image and Background Loader",
4-
"version": "1.7.6",
4+
"version": "1.7.7",
55
"description": "Lazy is a fast, feature-rich and lightweight delayed content loading plugin for jQuery and Zepto. It's designed to speed up page loading times and decrease traffic to your users by only loading the content in view.",
66
"main": "jquery.lazy.js",
77
"homepage": "http://jquery.eisbehr.de/lazy",

plugins/jquery.lazy.picture.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* jQuery & Zepto Lazy - Picture Plugin - v1.2
2+
* jQuery & Zepto Lazy - Picture Plugin - v1.3
33
* http://jquery.eisbehr.de/lazy/
44
*
55
* Copyright 2012 - 2017, Daniel 'Eisbehr' Kern
@@ -36,7 +36,7 @@
3636
if( elementTagName === "picture" ) {
3737
var sources = element.find(srcAttr),
3838
image = element.find("data-img"),
39-
imageBase = this.config("imageBase");
39+
imageBase = this.config("imageBase") || "";
4040

4141
// handle as child elements
4242
if( sources.length ) {

plugins/jquery.lazy.picture.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)