You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

jquery-mouse-exit

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jquery-mouse-exit

Triggers 'mouseexit' event when mouse focus has completely left the element. This type of behaviour is especially desirable for non-modal overlays.

1.0.1
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

jquery-mouse-exit

Build Status Coverage Status Dependency status devDependency status

jQuery collection plugin that triggers a 'mouseExit' event only when the mouse cursor has completely left the given element.

// init plugin
$(collection).mouseExit(options);

// handle event
$(collection).on('mouseExit', function(e, data) {
    console.log(data.lostFocus, data.gainedFocus);
})

Install

npm install jquery-mouse-exit

Options

  • delay - milliseconds in delay before triggering mouseExit event

Development

All tests are located in test.js.

Useful NPM scripts:

  • npm start for local browser-sync development of gh-pages
  • npm test runs tests & generates reports (see reports section below)
  • npm run tdd test driven development: watches code and re-tests after any change
  • npm run build cleans, lints, tests and minifies (called on npm prepublish hook)

Execute npm run to view all available CLI scripts.

Reports

Each test run will generate the following reports:

  • /test_reports/coverage contains Istanbul code coverage report
  • /test_reports/html contains HTML test report
  • /test_reports/junit contains JUnit test report

CI Build

https://travis-ci.org/makeup-jquery/jquery-mouse-exit

Code Coverage

https://coveralls.io/github/makeup-jquery/jquery-mouse-exit?branch=master

Keywords

jquery-plugin

FAQs

Package last updated on 18 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts