Why doesn't this work:
var foo = function() {
...
};
var boo = function() {
...
el.foo();
}
?
I get a foo is undefined error. But I just defined it above...
You just need to call foo(), not el.foo(). (Unless I'm missing something about how you're using this.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With