I’m having a little trouble with my script.js.
Here’s my onJavaScript method:
function onJavaScript() {
$js = MINT_ROOT.'pepper/perforatedart/airmail/script.js';
if ( file_exists($js) ) include($js);
}
Here’s my script.js (hollowed out):
if (!Mint.PA) { Mint.PA = new Object(); }
Mint.PA.AirMail = {
deleteSnapshots : function() {
}
};
Firebug tells me that PA is not defined, and from a bit of debugging it doesn’t look like the onJavaScript method is being called. Am I missing something, here?