MCPcopy Create free account
hub / github.com/compat-table/compat-table / addRemoveHover

Function addRemoveHover

master.js:262–269  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

260 // Since you can't add a :hover effect for columns,
261 // these handlers must suffice.
262 function addRemoveHover(name) {
263 return function () {
264 var c = platformOf(this);
265 if (c) {
266 $("[data-browser='" + c + "']")[name]('hover');
267 }
268 };
269 }
270 table
271 .on('mouseenter', 'td', addRemoveHover('addClass'))
272 .on('mouseleave', 'td', addRemoveHover('removeClass'));

Callers 1

master.jsFile · 0.85

Calls 1

platformOfFunction · 0.85

Tested by

no test coverage detected