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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    1
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i outerclick

Weekly Downloads

1

Version

1.0.3

License

MIT

Last publish

Collaborators

  • koh110