Skip to content

Commit 24ac70c

Browse files
committed
Fixed per feedback on PR
1 parent 9586c78 commit 24ac70c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/theme.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ JSONEditor.AbstractTheme = Class.extend({
273273
},
274274
closest: function(elem, selector) {
275275
while (elem && elem !== document) {
276-
if (elem.matchKey) {
276+
if (elem[matchKey]) {
277277
if (elem[matchKey](selector)) {
278278
return elem;
279279
} else {

0 commit comments

Comments
 (0)