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

Commit 4e951d6

Browse files
author
rgalus
committed
Merge branch 'develop'
2 parents 891593b + ccbc522 commit 4e951d6

File tree

3 files changed

+3756
-6
lines changed

3 files changed

+3756
-6
lines changed

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
},
2626
"homepage": "https://github.com/rgalus/sticky-js#readme",
2727
"devDependencies": {
28-
"babel-core": "^6.18.2",
29-
"babel-preset-es2015": "^6.18.0",
30-
"babel-register": "^6.18.0",
31-
"browser-sync": "^2.18.2",
28+
"babel-core": "^6.22.1",
29+
"babel-preset-es2015": "^6.22.0",
30+
"babel-register": "^6.22.0",
31+
"browser-sync": "^2.18.6",
3232
"del": "^2.2.2",
3333
"gulp": "github:gulpjs/gulp#4.0",
3434
"gulp-babel": "^6.1.2",

src/sticky.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Sticky {
2929

3030
this.options = {
3131
marginTop: options.marginTop || 0,
32-
stickyFor: options.stickFor || 0,
32+
stickyFor: options.stickyFor || 0,
3333
stickyClass: options.stickyClass || null,
3434
stickyContainer: options.stickyContainer || 'body',
3535
};
@@ -80,7 +80,7 @@ class Sticky {
8080
element.sticky.rect = this.getRectangle(element);
8181

8282
// fix when element is image that has not yet loaded and width, height = 0
83-
if (element.tagName.toLowerCase === 'img') {
83+
if (element.tagName.toLowerCase() === 'img') {
8484
element.onload = () => element.sticky.rect = this.getRectangle(element);
8585
}
8686

0 commit comments

Comments
 (0)