Avoid repeated errors if sidebox target is missing by removing listener first

This commit is contained in:
Nathan Gray 2013-11-27 00:18:55 +00:00
parent 5c6cceaa53
commit 3f687236a5

View File

@ -337,11 +337,11 @@ var et2_favorites = et2_dropdown_button.extend([et2_INextmatchHeader],
// Still no sidebox - might be loaded via ajax later, so we'll do this on first mouse over
$j('body').on('mouseover','#'+this.options.sidebox_target,
jQuery.proxy(function(e) {
$j('body').off(e);
// Set up handlers & such
this._init_sidebox();
// It will still have the plain HTML, so re-create the contents
this.init_filters(this);
$j('body').off(e);
},this)
);
}