I’m just getting started with learning JQuery, and in the video tutorial I’m following, the writer uses conventions like this:
$(function() {
//blablabla
});
I find that to be a little too many brackets, especially in event listeners, and I just find that code plain dirty.
Just wondering if it’s possible to do something similar to ActionScript, and instead pass in a reference to a function instead of defining a new one each and every time:
$(finishedLoading);
function finishedLoading() {
//blablabla
}