Ok, that's probably even more weird. I just did some testing from the default starter code in the challenge, and when you change
this.el.on('click', 'button', this.fetchPhotos());
this.el.on('click', 'button', this.fetchPhotos(el));
or pass anything as a parameter to
fetchPhotos(), then it executes immediately on page load instead of waiting for the button to be clicked.
Any idea why passing a parameter there breaks the event listener?
And I could've sworn there was something in the video or a slide that talked about passing a parameter to your AJAX-fetching function, but I don't see it now, and I probably just made it up. And maybe this is why, it doesn't seem to work...