MCPcopy Create free account
hub / github.com/microsoft/SandDance / hover

Function hover

docs/app/js/sanddance-app.js:141916–141927  ·  view source on GitHub ↗
(hoverSet, leaveSet)

Source from the content-addressed store, hash-verified

141914 };
141915}
141916function hover(hoverSet, leaveSet) {
141917 hoverSet = [
141918 hoverSet || "hover"
141919 ];
141920 leaveSet = [
141921 leaveSet || "update",
141922 hoverSet[0]
141923 ]; // invoke hover set upon mouseover
141924 this.on(this.events("view", "mouseover", itemFilter), markTarget, invoke(hoverSet)); // invoke leave set upon mouseout
141925 this.on(this.events("view", "mouseout", itemFilter), markTarget, invoke(leaveSet));
141926 return this;
141927}
141928/**
141929 * Finalize a View instance that is being removed.
141930 * Cancel any running timers.

Callers

nothing calls this directly

Calls 2

invokeFunction · 0.70
onMethod · 0.45

Tested by

no test coverage detected