Skip to content

Commit

Permalink
Fix issue #24
Browse files Browse the repository at this point in the history
  • Loading branch information
thinker3197 committed Aug 28, 2017
1 parent d4d3f4b commit e7ce4ca
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 16 deletions.
2 changes: 1 addition & 1 deletion dist/progressively.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 docs/progressively.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,6 +1,6 @@
{
"name": "progressively",
"version": "1.1.4",
"version": "1.1.5",
"description": "A JavaScript library to load images progressively",
"main": "dist/progressively.min.js",
"scripts": {
Expand Down
13 changes: 0 additions & 13 deletions src/progressively.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,12 @@
return o
}

/**
* Checks, if element is hidden
* @param object DOMElement
* @return {Boolean} [description]
*/
function isHidden (el) {
return (el.offsetParent === null)
}

/**
* Check if element is currently visible
* @param object DOMElement
* @return boolean
*/
function inView (el) {
if (isHidden(el)) {
return false
}

var box = el.getBoundingClientRect()
var top = box.top
var height = box.height
Expand Down

0 comments on commit e7ce4ca

Please sign in to comment.