(name)
| 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')); |