Skip to content

Commit 605d0f8

Browse files
committed
Closes #530 - fix for undefined matchKey on element
Merge remote-tracking branch 'origin/pr/530'
2 parents 3556159 + 24ac70c commit 605d0f8

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 (matchKey) {
276+
if (elem[matchKey]) {
277277
if (elem[matchKey](selector)) {
278278
return elem;
279279
} else {

0 commit comments

Comments
 (0)