Prevent unnecessary duplicate profile boxes

This commit is contained in:
calzoneman 2015-10-19 20:28:33 -07:00
parent 6ed7ca8dbb
commit dacda65961

View file

@ -107,6 +107,15 @@ function formatUserlistItem(div) {
} }
var profile = null; var profile = null;
/*
* 2015-10-19
* Prevent rendering unnecessary duplicates of the profile box when
* a user's status changes.
*/
name.unbind("mouseenter");
name.unbind("mousemove");
name.unbind("mouseleave");
name.mouseenter(function(ev) { name.mouseenter(function(ev) {
if (profile) if (profile)
profile.remove(); profile.remove();