My site is built on Drupal 7, and a number of my
.js scripts are throwing this exception:
Uncaught TypeError: Property '$' of object [object Window] is not a function. After some research, I think this is related to the new jQuery namespace update, but since we didn't write the scripts, I'd rather remove them than make changes.
I've traced the references to the
$scripts variable in
html.tpl.php, but haven't been able to trace back any farther. I've examined
.info files for additions to
drupal_add_library(), preprocess and process function calls, and found nothing.
Has anyone had similar issues with removing JS file references, and could you give me a rundown on Drupal's script inclusion process? I found the methods above digging through docs and help sites, but I'm still not clear on how it all comes together (i.e. if scripts variable additions are added before drupal_add_js() calls, etc.).