This one might get me slaughtered, since I'm pretty sure it's bad coding practice, so here goes:
Since I have initialization scripts that need to be run to finish "setting up" the template, I include those in a function called
pageComplete(), on every page
Visiting one page to another causes the previous
pageComplete() function to no longer apply, since a new one is defined.
pageComplete() blindly when the AJAX call is completed and is loaded onto the page:
So yes, if
pageComplete() is not defined in one the pages, the old
pageComplete() is called, which could potentially be disastrous, but as of now, every single page has
pageComplete() defined, even if it is empty.
Good idea, bad idea?