Posted by neilnz on August 8, 2011 at 6:13am
2 followers
Jump to:
| Project: | High-performance JavaScript callback handler |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Issue Summary
Hi,
In many cases hook_init() will not be required in order to run just a JS callback, and in our case hook_init() completely breaks because it calls functions from the menu module. Instead of putting logic into the hook_init() impementation to detect that it's running under js.php, I thought it might be neater to simply specify that hook_init() isn't required in hook_js().
Here's the patch to allow this flag.
Default is still to run it.
Thanks
| Attachment | Size |
|---|---|
| js.php_.skiphookinit.patch | 610 bytes |
Comments
#1
Subscribed