Skip to content

Commit

Permalink
Merge pull request #1 from fabriciobrag/master
Browse files Browse the repository at this point in the history
fix safari bug
  • Loading branch information
fabriciobrag committed Dec 28, 2015
2 parents 79e1eac + 690ac59 commit a453543
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions hinclude.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ var hinclude;
lazy: function (element, url, media, incl_cb) {
var threshold = +element.dataset.threshold || 0;

delete element.dataset.lazy;
delete element.dataset.threshold;
if (element.dataset.lazy) delete element.dataset.lazy;
if (element.dataset.treshhold) delete element.dataset.threshold;

if (is_being_displayed(element, threshold)) {
this.include(element, url, media, incl_cb);
Expand Down Expand Up @@ -280,4 +280,4 @@ var hinclude;
hinclude.run();
});

}());
}());
2 changes: 1 addition & 1 deletion hinclude.min.js

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

0 comments on commit a453543

Please sign in to comment.