This repository was archived by the owner on Jan 11, 2022. It is now read-only.
Commit 4e951d6 rgalus
committed
File tree 3 files changed +3756
-6
lines changed
3 files changed +3756
-6
lines changed Original file line number Diff line number Diff line change 25
25
},
26
26
"homepage" : " https://github.com/rgalus/sticky-js#readme" ,
27
27
"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 " ,
32
32
"del" : " ^2.2.2" ,
33
33
"gulp" : " github:gulpjs/gulp#4.0" ,
34
34
"gulp-babel" : " ^6.1.2" ,
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ class Sticky {
29
29
30
30
this . options = {
31
31
marginTop : options . marginTop || 0 ,
32
- stickyFor : options . stickFor || 0 ,
32
+ stickyFor : options . stickyFor || 0 ,
33
33
stickyClass : options . stickyClass || null ,
34
34
stickyContainer : options . stickyContainer || 'body' ,
35
35
} ;
@@ -80,7 +80,7 @@ class Sticky {
80
80
element . sticky . rect = this . getRectangle ( element ) ;
81
81
82
82
// 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' ) {
84
84
element . onload = ( ) => element . sticky . rect = this . getRectangle ( element ) ;
85
85
}
86
86
You can’t perform that action at this time.
0 commit comments