Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ng-click-outside

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-click-outside - npm Package Compare versions

Comparing version 2.0.3 to 2.1.0

5

lib/click-outside.directive.js

@@ -22,4 +22,6 @@ "use strict";

this._el.nativeElement.removeEventListener('click', this._initOnClickBody);
this._el.nativeElement.removeEventListener('touchstart', this._initOnClickBody);
}
this._document.body.removeEventListener('click', this._onClickBody);
this._document.body.removeEventListener('touchstart', this._onClickBody);
};

@@ -47,2 +49,3 @@ ClickOutsideDirective.prototype.ngOnChanges = function (changes) {

this._el.nativeElement.addEventListener('click', this._initOnClickBody);
this._el.nativeElement.addEventListener('touchstart', this._initOnClickBody);
}

@@ -56,2 +59,3 @@ else {

this._document.body.addEventListener('click', this._onClickBody);
this._document.body.addEventListener('touchstart', this._onClickBody);
};

@@ -64,2 +68,3 @@ /** @internal */

this._document.body.removeEventListener('click', this._onClickBody);
this._document.body.removeEventListener('touchstart', this._onClickBody);
}

@@ -66,0 +71,0 @@ }

2

package.json
{
"name": "ng-click-outside",
"version": "2.0.3",
"version": "2.1.0",
"description": "Angular 2+ directive for handling click events outside an element.",

@@ -5,0 +5,0 @@ "repository": {

@@ -38,5 +38,7 @@ import {

this._el.nativeElement.removeEventListener('click', this._initOnClickBody);
this._el.nativeElement.removeEventListener('touchstart', this._initOnClickBody);
}
this._document.body.removeEventListener('click', this._onClickBody);
this._document.body.removeEventListener('touchstart', this._onClickBody);
}

@@ -66,2 +68,3 @@

this._el.nativeElement.addEventListener('click', this._initOnClickBody);
this._el.nativeElement.addEventListener('touchstart', this._initOnClickBody);
} else {

@@ -75,2 +78,3 @@ this._initOnClickBody();

this._document.body.addEventListener('click', this._onClickBody);
this._document.body.addEventListener('touchstart', this._onClickBody);
}

@@ -85,2 +89,3 @@

this._document.body.removeEventListener('click', this._onClickBody);
this._document.body.removeEventListener('touchstart', this._onClickBody);
}

@@ -87,0 +92,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc