Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function(){
- function focusInHandler(e){
- Event.element(e).fire("focus:in");
- }
- function focusOutHandler(e){
- Event.element(e).fire("focus:out");
- }
- if (document.addEventListener){
- document.addEventListener("focus", focusInHandler, true);
- document.addEventListener("blur", focusOutHandler, true);
- } else {
- document.observe("focusin", focusInHandler);
- document.observe("focusout", focusOutHandler);
- }
- })();
Add Comment
Please, Sign In to add comment