mirror of
https://github.com/jsbin/jsbin.git
synced 2026-01-25 15:38:56 +00:00
Delegate tr mouseover events.
This commit is contained in:
parent
5651efb4d0
commit
005f7bb25b
@ -63,11 +63,11 @@
|
||||
});
|
||||
|
||||
// Delay a preview load after tr mouseover
|
||||
$trs.mouseover(function (event) {
|
||||
$bins.delegate('tr', 'mouseover', function (event) {
|
||||
var $this = $(this),
|
||||
url = $this.attr('data-url');
|
||||
clearTimeout(hoverTimer);
|
||||
if ($this.attr('data-type') !== 'spacer' && current !== url) {
|
||||
if (current !== url) {
|
||||
hoverTimer = setTimeout(function () {
|
||||
$trs.removeClass('selected');
|
||||
$this.addClass('selected');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user