Socket
Socket
Sign inDemoInstall

@lion/calendar

Package Overview
Dependencies
Maintainers
1
Versions
174
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lion/calendar - npm Package Compare versions

Comparing version 0.12.6 to 0.12.7

6

CHANGELOG.md
# Change Log
## 0.12.7
### Patch Changes
- 69e38a76: Fix event handler bind so the events are cleaned up properly in disconnectedCallback
## 0.12.6

@@ -4,0 +10,0 @@

2

package.json
{
"name": "@lion/calendar",
"version": "0.12.6",
"version": "0.12.7",
"description": "Standalone calendar",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -103,2 +103,6 @@ declare const LionCalendar_base: typeof LitElement & import("@open-wc/dedupe-mixin").Constructor<import("@lion/localize/types/LocalizeMixinTypes").LocalizeMixinHost> & typeof import("@lion/localize/types/LocalizeMixinTypes").LocalizeMixinHost;

locale: string;
__boundKeyboardNavigationEvent: (ev: KeyboardEvent) => void;
__boundClickDateDelegation: (ev: Event) => void;
__boundFocusDateDelegation: () => void;
__boundBlurDateDelegation: () => void;
get focusedDate(): Date | null;

@@ -105,0 +109,0 @@ goToNextMonth(): void;

@@ -167,2 +167,6 @@ import { html, LitElement } from '@lion/core';

this.locale = '';
this.__boundKeyboardNavigationEvent = this.__keyboardNavigationEvent.bind(this);
this.__boundClickDateDelegation = this.__clickDateDelegation.bind(this);
this.__boundFocusDateDelegation = this.__focusDateDelegation.bind(this);
this.__boundBlurDateDelegation = this.__focusDateDelegation.bind(this);
}

@@ -258,9 +262,6 @@

));
this.__contentWrapperElement.addEventListener('click', this.__clickDateDelegation.bind(this));
this.__contentWrapperElement.addEventListener('focus', this.__focusDateDelegation.bind(this));
this.__contentWrapperElement.addEventListener('blur', this.__blurDateDelegation.bind(this));
this.__contentWrapperElement.addEventListener(
'keydown',
this.__keyboardNavigationEvent.bind(this),
);
this.__contentWrapperElement.addEventListener('click', this.__boundClickDateDelegation);
this.__contentWrapperElement.addEventListener('focus', this.__boundFocusDateDelegation);
this.__contentWrapperElement.addEventListener('blur', this.__boundBlurDateDelegation);
this.__contentWrapperElement.addEventListener('keydown', this.__boundKeyboardNavigationEvent);
this.__eventsAdded = true;

@@ -273,20 +274,8 @@ }

if (this.__contentWrapperElement) {
this.__contentWrapperElement.removeEventListener('click', this.__boundClickDateDelegation);
this.__contentWrapperElement.removeEventListener('focus', this.__boundFocusDateDelegation);
this.__contentWrapperElement.removeEventListener('blur', this.__boundBlurDateDelegation);
this.__contentWrapperElement.removeEventListener(
'click',
this.__clickDateDelegation.bind(this),
);
this.__contentWrapperElement.removeEventListener(
'focus',
this.__focusDateDelegation.bind(this),
true,
);
this.__contentWrapperElement.removeEventListener(
'blur',
this.__blurDateDelegation.bind(this),
true,
);
this.__contentWrapperElement.removeEventListener(
'keydown',
this.__keyboardNavigationEvent.bind(this),
this.__boundKeyboardNavigationEvent,
);

@@ -293,0 +282,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