Fix reference to undefined variable

Replace an undefined variable with a jQuery-wrapped `this`. The original code appears to have a typo.
This commit is contained in:
Kaveet Laxmidas 2019-08-13 14:49:04 -05:00 committed by GitHub
parent 7dc2844ea8
commit 3b3ffb468f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,7 +26,7 @@ $(document).ready(() => {
if ($figcaption) {
$(this).attr('alt', $figcaption.text())
} else {
$this.attr('alt', '')
$(this).attr('alt', '')
}
})