jQuery suggests to wait for the document ready
event before doing any DOM manipulation. In flight.js components, this.after('initialize')
seems to be called before that event triggers.
Is it necessary to wait for it within a flight component, like so?
this.after('initialize', function () {
// Is this necessary?
$(document).ready(function () {
...
});
// Or this, the flight way?
this.on(document, 'ready', function () {
...
});
});
Thank you