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 @@ -