Closed szepeviktor closed 10 years ago
If you want to begin loading after the DOM is ready, you have to specify a "dummy" argument
curl(['domReady!', 'retafunc'], function (domready, retafunc) {
console.log(typeof retafunc);
retafunc();
});
or use next()
curl(['domReady!']).next(['retafunc'], function (retafunc) {
console.log(typeof retafunc);
retafunc();
(am I right?)
Because afunc is from the domReady!
plugin instead of retafunc
.
Try:
curl(['retafunc', 'domReady!'], function (afunc) {
console.log(typeof afunc);
});
In the future, you're better off asking questions on the mailing list rather than opening issues.
Thank you!
(sorry for the amount of issues by me)
Could you tell me why
typeof afunc
givesundefined
?retafunc.js: