code: function(e){
  
              if(_currentModal === this) {
  
                  var target = Event.getTarget(e),
                      doc = document.documentElement,
                      insideDoc = (target !== doc && target !== window);
  
                  // mask and documentElement checks added for IE, which focuses on the mask when it's clicked on, and focuses on 
                  // the documentElement, when the document scrollbars are clicked on
                  if (insideDoc && target !== this.element && target !== this.mask && !Dom.isAncestor(this.element, target)) {
                      try {
                          if (this.firstElement) {
                              this.firstElement.focus();
                          } else {
                              if (this._modalFocus) {
                                  this._modalFocus.focus();
                              } else {
                                  this.innerElement.focus();
                              }
                          }
                      } catch(err){
                          // Just in case we fail to focus
                          try {
                              if (insideDoc && target !== document.body) {
                                  target.blur();
                              }
                          } catch(err2) { }
                      }
                  }
              }
          }
docs: @method _onElementFocus
  @private
  
  "focus" event handler for a focuable element. Used to automatically
  blur the element when it receives focus to ensure that a Panel
  instance's modality is not compromised.
  
  @param {Event} e The DOM event object