Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Small code improvements
  • Loading branch information
alecpl committed May 2, 2014
1 parent 378efdd commit f923d4b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions program/js/common.js
Expand Up @@ -224,7 +224,7 @@ add_listener: function(p)
p.element = document;

if (!p.object._rc_events)
p.object._rc_events = [];
p.object._rc_events = {};

var key = p.event + '*' + p.method;
if (!p.object._rc_events[key])
Expand Down Expand Up @@ -508,8 +508,8 @@ function rcube_mouse_is_over(ev, obj)
var mouse = rcube_event.get_mouse_pos(ev),
pos = $(obj).offset();

return ((mouse.x >= pos.left) && (mouse.x < (pos.left + obj.offsetWidth)) &&
(mouse.y >= pos.top) && (mouse.y < (pos.top + obj.offsetHeight)));
return (mouse.x >= pos.left) && (mouse.x < (pos.left + obj.offsetWidth)) &&
(mouse.y >= pos.top) && (mouse.y < (pos.top + obj.offsetHeight));
};


Expand All @@ -521,6 +521,7 @@ function setCookie(name, value, expires, path, domain, secure)
(path ? "; path=" + path : "") +
(domain ? "; domain=" + domain : "") +
(secure ? "; secure" : "");

document.cookie = curCookie;
};

Expand Down

0 comments on commit f923d4b

Please sign in to comment.