mirror of
https://github.com/encounter/phantomjs.git
synced 2026-03-30 11:35:11 -07:00
ce065d9fda
You can now set a priority on a function to control when it executes for a particular action (hook). Default priority is 10, but can be changed to anything. For example, if you have 2 functions hooked to 'Phantom', you can change one function to priority 12 and leave the other at 10, so the one at 10 will execute first, no matter where it is defined.