Closed (fixed)
Project:
Advanced CSS/JS Aggregation
Version:
7.x-2.x-dev
Component:
AdvAgg Modifier
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Jun 2015 at 01:42 UTC
Updated:
22 Jun 2015 at 22:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mikeytown2 commentedhttp://stackoverflow.com/questions/5198579/javascript-declaring-global-s...
Comment #2
mikeytown2 commentedregex to match on a function
'/\\s*function\\s+((?:[a-z][a-z0-9_]*))\\s*\\(.*\\)\\s*\\{/smix'crude but should get the job done.
The alternative is to special case this as most function definitions are done in a .js file. I might end up doing both.
Comment #3
mikeytown2 commented