1.0.3 • Published 7 years ago

outerclick v1.0.3

Weekly downloads
9
License
MIT
Repository
github
Last release
7 years ago

OuterClick

OuterClick will fire the events when you click outside of the element.

for client-side library.

Animated GIF

Installation

npm install outerclick

Usage

Script tag

<script src="node_modules/outerclick/dist/outerclick.js"></script>

Browserify / Webpack

var outerclick = require('outerclick');

add event listener

outerclick.addListener('.target', function(e) {
  console.log('outer clicked!', e);
});

Supported browsers

this library depends on matches() method.
http://caniuse.com/#feat=matchesselector

License

MIT

1.0.3

7 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago