Skip to content

Commit

Permalink
1.7.9
Browse files Browse the repository at this point in the history
fixed issue with ajax plugin when called without request type
  • Loading branch information
dkern committed May 22, 2018
1 parent f592d3a commit f400244
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
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-/[email protected].8/jquery.lazy.min.js"></script>
<script type="text/javascript" src="//cdn.jsdelivr.net/gh/eisbehr-/[email protected].8/jquery.lazy.plugins.min.js"></script>
<script type="text/javascript" src="//cdn.jsdelivr.net/gh/eisbehr-/[email protected].9/jquery.lazy.min.js"></script>
<script type="text/javascript" src="//cdn.jsdelivr.net/gh/eisbehr-/[email protected].9/jquery.lazy.plugins.min.js"></script>

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

#### Self-Hosted
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -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.8",
"version": "1.7.9",
"main": "jquery.lazy.min.js",
"license": [
"MIT",
Expand Down
2 changes: 1 addition & 1 deletion jquery.lazy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* jQuery & Zepto Lazy - v1.7.8
* jQuery & Zepto Lazy - v1.7.9
* http://jquery.eisbehr.de/lazy/
*
* Copyright 2012 - 2018, 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
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* jQuery & Zepto Lazy - AJAX Plugin - v1.3
* jQuery & Zepto Lazy - AJAX Plugin - v1.4
* http://jquery.eisbehr.de/lazy/
*
* Copyright 2012 - 2018, Daniel 'Eisbehr' Kern
Expand Down Expand Up @@ -41,7 +41,7 @@
* @param {string} [method]
*/
function ajaxRequest(instance, element, response, method) {
method = method.toUpperCase();
method = method ? method.toUpperCase() : 'GET';

var data;
if ((method === 'POST' || method === 'PUT') && instance.config('ajaxCreateData')) {
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
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jquery-lazy",
"title": "jQuery & Zepto Lazy - Delayed Content, Image and Background Loader",
"version": "1.7.8",
"version": "1.7.9",
"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.ajax.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* jQuery & Zepto Lazy - AJAX Plugin - v1.3
* jQuery & Zepto Lazy - AJAX Plugin - v1.4
* http://jquery.eisbehr.de/lazy/
*
* Copyright 2012 - 2018, Daniel 'Eisbehr' Kern
Expand Down Expand Up @@ -41,7 +41,7 @@
* @param {string} [method]
*/
function ajaxRequest(instance, element, response, method) {
method = method.toUpperCase();
method = method ? method.toUpperCase() : 'GET';

var data;
if ((method === 'POST' || method === 'PUT') && instance.config('ajaxCreateData')) {
Expand Down
4 changes: 2 additions & 2 deletions plugins/jquery.lazy.ajax.min.js

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

0 comments on commit f400244

Please sign in to comment.