Skip to content

Commit f400244

Browse files
committed
1.7.9
fixed issue with ajax plugin when called without request type
1 parent f592d3a commit f400244

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.8/jquery.lazy.min.js"></script>
69-
<script type="text/javascript" src="//cdn.jsdelivr.net/gh/eisbehr-/jquery.lazy@1.7.8/jquery.lazy.plugins.min.js"></script>
68+
<script type="text/javascript" src="//cdn.jsdelivr.net/gh/eisbehr-/jquery.lazy@1.7.9/jquery.lazy.min.js"></script>
69+
<script type="text/javascript" src="//cdn.jsdelivr.net/gh/eisbehr-/jquery.lazy@1.7.9/jquery.lazy.plugins.min.js"></script>
7070

7171
<!-- cdnjs -->
72-
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery.lazy/1.7.8/jquery.lazy.min.js"></script>
73-
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery.lazy/1.7.8/jquery.lazy.plugins.min.js"></script>
72+
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery.lazy/1.7.9/jquery.lazy.min.js"></script>
73+
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery.lazy/1.7.9/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.8",
4+
"version": "1.7.9",
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.8
2+
* jQuery & Zepto Lazy - v1.7.9
33
* http://jquery.eisbehr.de/lazy/
44
*
55
* Copyright 2012 - 2018, 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
@@ -1,5 +1,5 @@
11
/*!
2-
* jQuery & Zepto Lazy - AJAX Plugin - v1.3
2+
* jQuery & Zepto Lazy - AJAX Plugin - v1.4
33
* http://jquery.eisbehr.de/lazy/
44
*
55
* Copyright 2012 - 2018, Daniel 'Eisbehr' Kern
@@ -41,7 +41,7 @@
4141
* @param {string} [method]
4242
*/
4343
function ajaxRequest(instance, element, response, method) {
44-
method = method.toUpperCase();
44+
method = method ? method.toUpperCase() : 'GET';
4545

4646
var data;
4747
if ((method === 'POST' || method === 'PUT') && instance.config('ajaxCreateData')) {

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.8",
4+
"version": "1.7.9",
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.ajax.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* jQuery & Zepto Lazy - AJAX Plugin - v1.3
2+
* jQuery & Zepto Lazy - AJAX Plugin - v1.4
33
* http://jquery.eisbehr.de/lazy/
44
*
55
* Copyright 2012 - 2018, Daniel 'Eisbehr' Kern
@@ -41,7 +41,7 @@
4141
* @param {string} [method]
4242
*/
4343
function ajaxRequest(instance, element, response, method) {
44-
method = method.toUpperCase();
44+
method = method ? method.toUpperCase() : 'GET';
4545

4646
var data;
4747
if ((method === 'POST' || method === 'PUT') && instance.config('ajaxCreateData')) {

plugins/jquery.lazy.ajax.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)