From 10abf2bc2d08526ad69c6e8691b0a3384603fcc1 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Mon, 03 Feb 2014 06:13:25 -0500
Subject: [PATCH] Fix bug where it wasn't possible to focus the messages list with mouse click on a record after the focus was put on preview frame.

---
 program/js/common.js |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/program/js/common.js b/program/js/common.js
index 1409146..d320d86 100644
--- a/program/js/common.js
+++ b/program/js/common.js
@@ -65,6 +65,7 @@
     this.iphone = this.safari && (this.agent_lc.indexOf('iphone') > 0 || this.agent_lc.indexOf('ipod') > 0);
     this.ipad = this.safari && this.agent_lc.indexOf('ipad') > 0;
     this.opera = window.opera ? true : false;
+    this.webkit = this.safari || this.chrome;
   }
 
   if (!this.vendver) {
@@ -285,7 +286,6 @@
  *
  * @param {String}   Event name
  * @param {Function} Handler function
- * @return Listener ID (used to remove this handler later on)
  */
 addEventListener: function(evt, func, obj)
 {
@@ -295,6 +295,8 @@
     this._events[evt] = [];
 
   this._events[evt].push({func:func, obj:obj ? obj : window});
+
+  return this; // chainable
 },
 
 /**

--
Gitblit v1.9.1