Prevent unnecessary duplicate profile boxes

This commit is contained in:
calzoneman 2015-10-19 20:28:33 -07:00
parent 6ed7ca8dbb
commit dacda65961
1 changed files with 9 additions and 0 deletions

View File

@ -107,6 +107,15 @@ function formatUserlistItem(div) {
}
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) {
if (profile)
profile.remove();