Miss any of our Open RFC calls?Watch the recordings here! »

outerclick

1.0.3 • Public • Published

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

Install

npm i outerclick

DownloadsWeekly Downloads

7

Version

1.0.3

License

MIT

Last publish

Collaborators

  • avatar