Closed (works as designed)
Project:
Advanced CSS/JS Aggregation
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Feb 2014 at 13:58 UTC
Updated:
11 Oct 2016 at 04:19 UTC
Jump to comment: Most recent
Comments
Comment #1
david_garcia commentedSo, the problem source is that there was a call to drupal_add_js inside hook_js_alter.
As per the documentation:
Note that hook_js_alter(&$javascript) is called during this function call to allow alterations of the JavaScript during its presentation. Calls to drupal_add_js() from hook_js_alter() will not be added to the output presentation. The correct way to add JavaScript during hook_js_alter() is to add another element to the $javascript array, deriving from drupal_js_defaults(). See locale_js_alter() for an example of this.
So it is not a bug for this module.
Comment #2
delacosta456 commentedhi
i am having this problem too, and don't have this module either logintoboggan enable.. i have uninstall them and cleared everything, delected all folders
Comment #3
mikeytown2 commented@delacosta456
Are you using drupal_add_js() inside of hook_js_alter()?
Comment #4
delacosta456 commentedhi
specially on my own side no ;
i made a search of drupal_add_js" in my whole site/all/modules directory which return a lot of module's files ins which it is used .
searching hook_js_alter() does nott return anything
thanks
Comment #5
mikeytown2 commented@delacosta456
If you're not using AdvAgg, your best bet is to use http://drupal.stackexchange.com/ as this seems like a problem that I can't help you with.
Comment #6
delacosta456 commentedhi
ok thanks