Skip to content

Commit

Permalink
1.7.7
Browse files Browse the repository at this point in the history
- fixed imageBase issue in picture plugin
  • Loading branch information
dkern committed Nov 29, 2017
1 parent 11ebed9 commit d4ff2d5
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -65,12 +65,12 @@ Some examples below:
Lazy and all plugins are available over [cdnjs](http://cdnjs.com) and [jsDelivr](http://jsdelivr.com) CDN and can directly included to every page.
```HTML
<!-- jsDeliver -->
<script type="text/javascript" src="//cdn.jsdelivr.net/gh/eisbehr-/jquery.lazy@1.7.6/jquery.lazy.min.js"></script>
<script type="text/javascript" src="//cdn.jsdelivr.net/gh/eisbehr-/jquery.lazy@1.7.6/jquery.lazy.plugins.min.js"></script>
<script type="text/javascript" src="//cdn.jsdelivr.net/gh/eisbehr-/jquery.lazy@1.7.7/jquery.lazy.min.js"></script>
<script type="text/javascript" src="//cdn.jsdelivr.net/gh/eisbehr-/jquery.lazy@1.7.7/jquery.lazy.plugins.min.js"></script>

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

#### Self-Hosted
Expand Down
2 changes: 1 addition & 1 deletion bower.json
@@ -1,7 +1,7 @@
{
"name": "jquery-lazy",
"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.",
"version": "1.7.6",
"version": "1.7.7",
"main": "jquery.lazy.min.js",
"license": [
"MIT",
Expand Down
2 changes: 1 addition & 1 deletion jquery.lazy.js
@@ -1,5 +1,5 @@
/*!
* jQuery & Zepto Lazy - v1.7.6
* jQuery & Zepto Lazy - v1.7.7
* http://jquery.eisbehr.de/lazy/
*
* Copyright 2012 - 2017, Daniel 'Eisbehr' Kern
Expand Down
2 changes: 1 addition & 1 deletion jquery.lazy.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions jquery.lazy.plugins.js
Expand Up @@ -302,7 +302,7 @@
})(window.jQuery || window.Zepto);

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

// handle as child elements
if( sources.length ) {
Expand Down
4 changes: 2 additions & 2 deletions jquery.lazy.plugins.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "jquery-lazy",
"title": "jQuery & Zepto Lazy - Delayed Content, Image and Background Loader",
"version": "1.7.6",
"version": "1.7.7",
"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.",
"main": "jquery.lazy.js",
"homepage": "http://jquery.eisbehr.de/lazy",
Expand Down
4 changes: 2 additions & 2 deletions plugins/jquery.lazy.picture.js
@@ -1,5 +1,5 @@
/*!
* jQuery & Zepto Lazy - Picture Plugin - v1.2
* jQuery & Zepto Lazy - Picture Plugin - v1.3
* http://jquery.eisbehr.de/lazy/
*
* Copyright 2012 - 2017, Daniel 'Eisbehr' Kern
Expand Down Expand Up @@ -36,7 +36,7 @@
if( elementTagName === "picture" ) {
var sources = element.find(srcAttr),
image = element.find("data-img"),
imageBase = this.config("imageBase");
imageBase = this.config("imageBase") || "";

// handle as child elements
if( sources.length ) {
Expand Down
4 changes: 2 additions & 2 deletions plugins/jquery.lazy.picture.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d4ff2d5

Please sign in to comment.