Skip to content
This repository was archived by the owner on Jan 11, 2022. It is now read-only.

Commit 5f1c993

Browse files
author
rgalus
committed
1.1.7
1 parent 4e951d6 commit 5f1c993

6 files changed

+9
-9
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
"test",
1919
"tests"
2020
],
21-
"version": "1.1.6"
21+
"version": "1.1.7"
2222
}

dist/sticky.compile.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
44
* Sticky.js
55
* Library for sticky elements written in vanilla javascript. With this library you can easily set sticky elements on your website. It's also responsive.
66
*
7-
* @version 1.1.6
7+
* @version 1.1.7
88
* @author Rafal Galus <[email protected]>
99
* @website https://rgalus.github.io/sticky-js/
1010
* @repo https://github.com/rgalus/sticky-js
@@ -27,15 +27,15 @@ var Sticky = function () {
2727
this.selector = selector;
2828
this.elements = [];
2929

30-
this.version = '1.1.6';
30+
this.version = '1.1.7';
3131

3232
this.vp = this.getViewportSize();
3333
this.scrollTop = this.getScrollTopPosition();
3434
this.body = document.querySelector('body');
3535

3636
this.options = {
3737
marginTop: options.marginTop || 0,
38-
stickyFor: options.stickFor || 0,
38+
stickyFor: options.stickyFor || 0,
3939
stickyClass: options.stickyClass || null,
4040
stickyContainer: options.stickyContainer || 'body'
4141
};
@@ -94,7 +94,7 @@ var Sticky = function () {
9494
element.sticky.rect = this.getRectangle(element);
9595

9696
// fix when element is image that has not yet loaded and width, height = 0
97-
if (element.tagName.toLowerCase === 'img') {
97+
if (element.tagName.toLowerCase() === 'img') {
9898
element.onload = function () {
9999
return element.sticky.rect = _this2.getRectangle(element);
100100
};

dist/sticky.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/sticky.min.js.gz

-1 Bytes
Binary file not shown.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sticky-js",
3-
"version": "1.1.6",
3+
"version": "1.1.7",
44
"description": "Sticky elements",
55
"main": "index.js",
66
"scripts": {

src/sticky.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Sticky.js
44
* Library for sticky elements written in vanilla javascript. With this library you can easily set sticky elements on your website. It's also responsive.
55
*
6-
* @version 1.1.6
6+
* @version 1.1.7
77
* @author Rafal Galus <[email protected]>
88
* @website https://rgalus.github.io/sticky-js/
99
* @repo https://github.com/rgalus/sticky-js
@@ -21,7 +21,7 @@ class Sticky {
2121
this.selector = selector;
2222
this.elements = [];
2323

24-
this.version = '1.1.6';
24+
this.version = '1.1.7';
2525

2626
this.vp = this.getViewportSize();
2727
this.scrollTop = this.getScrollTopPosition();

0 commit comments

Comments
 (0)