Skip to content

Commit b65db8d

Browse files
committed
maint(pat inject): Modernize code.
1 parent 6c4e375 commit b65db8d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/pat/inject/inject.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,6 @@ const inject = {
960960
return $html;
961961
},
962962

963-
// XXX: hack
964963
_initAutoloadVisible($el, cfgs) {
965964
if ($el.data("pat-inject-autoloaded")) {
966965
// ignore executed autoloads
@@ -980,7 +979,7 @@ const inject = {
980979
};
981980
$el.click(trigger);
982981

983-
// Use case 1: a (heigh-constrained) scrollable parent
982+
// Use case 1: a (height-constrained) scrollable parent
984983
if ($scrollable.length) {
985984
// if scrollable parent and visible -> trigger it
986985
// we only look at the closest scrollable parent, no nesting

0 commit comments

Comments
 (0)