afterOpen and afterClose are both firing on page load
Opened this issue · 0 comments
kyleatblackfoot commented
hey guys, I have a couple functions at the bottom of my js file.
function openBurg() { console.log('open'); } function closeBurg() { console.log('close'); }
I'm using them when calling bigSlide
$j('.artclose').bigSlide({ 'side': 'right', 'afterOpen': openBurg(), 'afterClose': closeBurg() });
The console.log is just to for me to see when it will call, both are calling on page load
Edit: I managed to fix this by using a function around the function like so: function(){openBurg();} in the bigSlide settings. This is most likely my lack of understanding around some javascript syntax.