Skip to content

Commit

Permalink
Merge pull request #27 from shinsenter/develop
Browse files Browse the repository at this point in the history
Bug fix
  • Loading branch information
shinsenter authored Apr 17, 2019
2 parents a448df5 + add1fdd commit b00907c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/defer_plus.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-lock.json

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,6 +1,6 @@
{
"name": "@shinsenter/defer.js",
"version": "1.1.7b",
"version": "1.1.7-c",
"description": "🥇 A super tiny, native performant library for lazy-loading JS, CSS, images, iframes... Defer almost anything, easily speed up your website. https://github.com/shinsenter/defer.js",
"homepage": "https://github.com/shinsenter/defer.js#readme",
"author": "Mai Nhut Tan <shin@shin.company>",
Expand Down
2 changes: 1 addition & 1 deletion src/extensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
// Force using IntersectionObserver when posible
// It class is the heart of media lazy-loading
if (OBSERVER_CLASS in window) {
observer = window[OBSERVER_CLASS](function(items) {
observer = new window[OBSERVER_CLASS](function(items) {
items[FOR_EACH](function(item, target) {
if (item.isIntersecting && (target = item.target)) {
observer.unobserve(target);
Expand Down

0 comments on commit b00907c

Please sign in to comment.