In order to customize an existing dev-tools shortcuts (Ctrl+Shift+C,
inspector), Firebug is changing
an attribute of an existing <key> XUL element. This element is not available
since the beginning
and so, Firebug is using a timeout (100ms) that is repeatedly executed till
the <key> element is there.
Another solution could be to use a mutation observer and
use an event when the <key> element is there.
What is a better approach, using a timeout or mutation observer?
What would you recommend for extension developers?
Honza
---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com