Guest User

Untitled

a guest
Apr 19th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. (function(){
  2. function focusInHandler(e){
  3. Event.element(e).fire("focus:in");
  4. }
  5. function focusOutHandler(e){
  6. Event.element(e).fire("focus:out");
  7. }
  8.  
  9. if (document.addEventListener){
  10. document.addEventListener("focus", focusInHandler, true);
  11. document.addEventListener("blur", focusOutHandler, true);
  12. } else {
  13. document.observe("focusin", focusInHandler);
  14. document.observe("focusout", focusOutHandler);
  15. }
  16. })();
Add Comment
Please, Sign In to add comment