Skip to content

Commit c6711fc

Browse files
committed
fixed bug in detecting if we should use native scroll
1 parent a2bcf3c commit c6711fc

4 files changed

+15
-8
lines changed

index.html

+8-3
Original file line numberDiff line numberDiff line change
@@ -283,10 +283,10 @@ <h1>LaziestLoader</h1>
283283
</section>
284284

285285
<section class="installation">
286-
<h2>Download v0.7.0</h2>
286+
<h2>Download v0.7.1</h2>
287287
<ol>
288-
<li><a href="https://raw.githubusercontent.com/sjwilliams/laziestloader/v0.7.0/jquery.laziestloader.js">Development Version</a></li>
289-
<li><a href="https://raw.githubusercontent.com/sjwilliams/laziestloader/v0.7.0/jquery.laziestloader.min.js">Production Version</a></li>
288+
<li><a href="https://raw.githubusercontent.com/sjwilliams/laziestloader/v0.7.1/jquery.laziestloader.js">Development Version</a></li>
289+
<li><a href="https://raw.githubusercontent.com/sjwilliams/laziestloader/v0.7.1/jquery.laziestloader.min.js">Production Version</a></li>
290290
<li><span class="code">$ npm install laziestloader</span></li>
291291
<li><span class="code">$ bower install laziestloader</span></li>
292292
</ol>
@@ -622,6 +622,11 @@ <h2>Trigger</h2>
622622

623623
<section id="releasehistory">
624624
<h2>Release History</h2>
625+
<h4>0.7.1</h4>
626+
<ul>
627+
<li>Fixed bug in detecting if watched event should be native scroll.</li>
628+
</ul>
629+
625630
<h4>0.7.0</h4>
626631
<ul>
627632
<li>Allow custom events, beyond the native scroll event, to trigger LaziestLoader. See <a href="https://github.com/sjwilliams/laziestloader/pull/16">Issue 16</a>.</li>

jquery.laziestloader.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @preserve LaziestLoader - v0.7.0 - 2015-11-17
2+
* @preserve LaziestLoader - v0.7.1 - 2015-11-17
33
* A responsive lazy loader for jQuery.
44
* http://sjwilliams.github.io/laziestloader/
55
* Copyright (c) 2015 Josh Williams; Licensed MIT
@@ -32,7 +32,9 @@
3232
}, options);
3333

3434

35-
var useNativeScroll = options.event === 'string' && options.event.indexOf('scroll') === 0;
35+
var useNativeScroll = (typeof options.event === 'string') && (options.event.indexOf('scroll') === 0);
36+
37+
console.log('use native scroll', useNativeScroll);
3638

3739
/**
3840
* Generate source path of image to load. Take into account

jquery.laziestloader.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,6 +1,6 @@
11
{
22
"name": "laziestloader",
3-
"version": "0.7.0",
3+
"version": "0.7.1",
44
"author": "Josh Williams <contact@joshwilliams.com>",
55
"description": "A responsive-aware jQuery plugin to smartly lazy load images and trigger callbacks.",
66
"repository": {

0 commit comments

Comments
 (0)