MCPcopy
hub / github.com/gijsroge/tilt.js / bindEvents

Function bindEvents

dest/tilt.jquery.js:18–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16 * Bind mouse movement evens on instance
17 */
18 var bindEvents = function bindEvents() {
19 var _this = this;
20 $(this).on('mousemove', mouseMove);
21 $(this).on('mouseenter', mouseEnter);
22 if (this.settings.reset) $(this).on('mouseleave', mouseLeave);
23 if (this.settings.glare) $(window).on('resize', updateGlareSize.bind(_this));
24 };
25
26 /**
27 * Set transition only on mouse leave and mouse enter so it doesn't influence mouse move transforms

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected