From 8e4a93e008dcae3bbd8479a3b7ebf931f5384c3f Mon Sep 17 00:00:00 2001 From: Taufik Nurrohman Date: Fri, 22 Oct 2021 22:28:29 +0700 Subject: [PATCH] Update --- .github/source/index.js.mjs | 8 +++++--- README.md | 2 +- index.html | 4 ++-- index.js | 10 ++++++---- index.min.js | 2 +- index.mjs | 10 ++++++---- package.json | 2 +- 7 files changed, 22 insertions(+), 16 deletions(-) diff --git a/.github/source/index.js.mjs b/.github/source/index.js.mjs index f3774c4..f450d81 100644 --- a/.github/source/index.js.mjs +++ b/.github/source/index.js.mjs @@ -22,15 +22,17 @@ const KEY_TAB = 'Tab'; function TP(source, state = {}) { - if (!source) return; + const $ = this; + + if (!source) { + return $; + } // Already instantiated, skip! if (source[name]) { return source[name]; } - const $ = this; - // Return new instance if `TP` was called without the `new` operator if (!isInstance($, TP)) { return new TP(source, state); diff --git a/README.md b/README.md index 4996a0d..a800003 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Contribute Release Notes ------------- -### 3.4.6 +### 3.4.7 - Added CSS variables for easy integration with third-party applications. - Fixed focus trap in read-only tag picker (#20). diff --git a/index.html b/index.html index 59cc219..6f963ce 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ - Tag Picker 3.4.6 + Tag Picker 3.4.7