Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
taufik-nurrohman committed Oct 25, 2024
1 parent 1db4eb2 commit 4e9e1e4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
var references = new WeakMap();

function getReference(key) {
return getValueInMap(key, references);
return getValueInMap(key, references) || null;
}

function getValue(self) {
Expand Down
2 changes: 1 addition & 1 deletion index.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const name = 'TextEditor';
const references = new WeakMap;

function getReference(key) {
return getValueInMap(key, references);
return getValueInMap(key, references) || null;
}

function getValue(self) {
Expand Down

0 comments on commit 4e9e1e4

Please sign in to comment.