<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -69,7 +69,6 @@ Facebox = Behavior.create({
     });
 
     this.facebox = $('facebox');
-    this.keyPressListener = this.watchKeyPress.bindAsEventListener(this);
     
     fb = this;
     Event.observe($$('#facebox .close').first(), 'click', function(e) {
@@ -82,11 +81,6 @@ Facebox = Behavior.create({
     });
   },
 
-  watchKeyPress : function(e) {
-    // Close if espace is pressed or if there's a click outside of the facebox
-    if (e.keyCode == 27 || !Event.element(e).descendantOf(this.facebox)) this.close();
-  },
-
   loading  : function() {
     if ($$('#facebox .loading').length == 1) return true;
     this.showOverlay();
@@ -102,9 +96,6 @@ Facebox = Behavior.create({
       'top': pageScroll.top + (document.viewport.getHeight() / 10) + 'px',
       'left': document.viewport.getWidth() / 2 - (this.facebox.getWidth() / 2) + 'px'
     });
-
-    Event.observe(document, 'keypress', this.keyPressListener);
-    Event.observe(document, 'click', this.keyPressListener);
   },
 
   reveal  : function(data, klass) {
@@ -124,9 +115,6 @@ Facebox = Behavior.create({
     this.facebox.setStyle({
       'left': document.viewport.getWidth() / 2 - (this.facebox.getWidth() / 2) + 'px'
     });
-
-    Event.observe(document, 'keypress', this.keyPressListener);
-    Event.observe(document, 'click', this.keyPressListener);
   },
 
   close    : function() {
@@ -201,8 +189,10 @@ Facebox = Behavior.create({
 	
 	hideOverlay : function() {
 	  if (this.skipOverlay()) return true;
-
-    $('facebox_overlay').fade({'duration':0.2});
-    $(&quot;facebox_overlay&quot;).remove();
+    
+    if ($('facebox_overlay')){
+      $('facebox_overlay').fade({'duration':0.2});
+      $(&quot;facebox_overlay&quot;).remove();
+    }
 	}
 });</diff>
      <filename>lowpro-fbox.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8695bed9410f9235e9a855044fe13fb3ad901210</id>
    </parent>
  </parents>
  <author>
    <name>Brian Landau</name>
    <email>brianjlandau@gmail.com</email>
  </author>
  <url>http://github.com/brianjlandau/lowpro-fbox/commit/4f523adb04bcf74d580cb0237fa35f73903d07fa</url>
  <id>4f523adb04bcf74d580cb0237fa35f73903d07fa</id>
  <committed-date>2008-11-09T17:01:42-08:00</committed-date>
  <authored-date>2008-11-09T17:01:42-08:00</authored-date>
  <message>Fix some bugs with IE.</message>
  <tree>11a0c2f39e984e5a75a64c8eaa4cd5be8a142c3d</tree>
  <committer>
    <name>Brian Landau</name>
    <email>brianjlandau@gmail.com</email>
  </committer>
</commit>
