<commit_before># @ebay/jquery-focus-exit

<p>
    <a href="https://travis-ci.org/ianmcburnie/jquery-focus-exit"><img src="https://api.travis-ci.org/ianmcburnie/jquery-focus-exit.svg?branch=master" alt="Build Status" /></a>
    <a href='https://coveralls.io/github/ianmcburnie/jquery-focus-exit?branch=master'><img src='https://coveralls.io/repos/ianmcburnie/jquery-focus-exit/badge.svg?branch=master&service=github' alt='Coverage Status' /></a>
</p>

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

JavaScript's native 'focusout' event fires when any descendant of a given element
loses keyboard focus, even if another descendant immediately gains focus. This type
of behaviour is not desirable for non-modal overlays.

```js
// init plugin
$(collection).focusExit();

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

## Experimental

This plugin is still in an experimental state, until it reaches v1.0.0 you must consider all minor releases as breaking changes. Patch releases may introduce new features, but will be backwards compatible.

Please use the tilde range specifier in your package.json to pin to a fixed major and minor version.

## Install

```js
npm install @ebay/jquery-focus-exit
```

The NPM package also includes a minified version of the plugin.

## Development

Run `npm start` for test driven development. All tests are located in `test.js`.
<commit_msg>Added David badges to README<commit_after># @ebay/jquery-focus-exit

<p>
    <a href="https://travis-ci.org/ianmcburnie/jquery-focus-exit"><img src="https://api.travis-ci.org/ianmcburnie/jquery-focus-exit.svg?branch=master" alt="Build Status" /></a>
    <a href='https://coveralls.io/github/ianmcburnie/jquery-focus-exit?branch=master'><img src='https://coveralls.io/repos/ianmcburnie/jquery-focus-exit/badge.svg?branch=master&service=github' alt='Coverage Status' /></a>
    <a href="https://david-dm.org/ianmcburnie/jquery-focus-exit"><img src="https://david-dm.org/ianmcburnie/jquery-focus-exit.svg" alt="Dependency status" /></a>
    <a href="https://david-dm.org/ianmcburnie/jquery-focus-exit#info=devDependencies"><img src="https://david-dm.org/ianmcburnie/jquery-focus-exit/dev-status.svg" alt="devDependency status" /></a>
</p>

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

JavaScript's native 'focusout' event fires when any descendant of a given element
loses keyboard focus, even if another descendant immediately gains focus. This type
of behaviour is not desirable for non-modal overlays.

```js
// init plugin
$(collection).focusExit();

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

## Experimental

This plugin is still in an experimental state, until it reaches v1.0.0 you must consider all minor releases as breaking changes. Patch releases may introduce new features, but will be backwards compatible.

## Install

```js
npm install @ebay/jquery-focus-exit
```

The NPM package also includes a minified version of the plugin.

## Development

Run `npm start` for test driven development. All tests are located in `test.js`.

{'fraction_non_alphanumeric': 0.12640283520378026, 'fraction_numerical': 0.0017720023626698169, 'mean_word_length': 4.859861591695502, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4165249', 'n_tokens_mistral': 1045, 'n_tokens_neox': 1013, 'n_words': 320}