File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -960,7 +960,6 @@ const inject = {
960
960
return $html ;
961
961
} ,
962
962
963
- // XXX: hack
964
963
_initAutoloadVisible ( $el , cfgs ) {
965
964
if ( $el . data ( "pat-inject-autoloaded" ) ) {
966
965
// ignore executed autoloads
@@ -980,7 +979,7 @@ const inject = {
980
979
} ;
981
980
$el . click ( trigger ) ;
982
981
983
- // Use case 1: a (heigh -constrained) scrollable parent
982
+ // Use case 1: a (height -constrained) scrollable parent
984
983
if ( $scrollable . length ) {
985
984
// if scrollable parent and visible -> trigger it
986
985
// we only look at the closest scrollable parent, no nesting
@@ -999,9 +998,8 @@ const inject = {
999
998
if ( target && target !== "self" && $ ( target ) . length === 0 ) {
1000
999
return false ;
1001
1000
}
1002
- const reltop =
1003
- $el . safeOffset ( ) . top - $scrollable . safeOffset ( ) . top - 1000 ,
1004
- doTrigger = reltop <= $scrollable . innerHeight ( ) ;
1001
+ const reltop = $el . safeOffset ( ) . top - $scrollable . safeOffset ( ) . top - 1000 ; // prettier-ignore
1002
+ const doTrigger = reltop <= $scrollable . innerHeight ( ) ;
1005
1003
if ( doTrigger ) {
1006
1004
// checkVisibility was possibly installed as a scroll
1007
1005
// handler and has now served its purpose -> remove
You can’t perform that action at this time.
0 commit comments