Skip to content

Commit

Permalink
Add some missing semicolons
Browse files Browse the repository at this point in the history
  • Loading branch information
philwareham committed Jun 16, 2021
1 parent 2087f1c commit 64b4e68
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions textpattern/textpattern.js
Original file line number Diff line number Diff line change
Expand Up @@ -965,7 +965,7 @@ textpattern.Route =
'step' : textpattern.step
}, options);

textpattern.Route.attached = textpattern.Route.attached.filter(function (elt) {return !!elt});
textpattern.Route.attached = textpattern.Route.attached.filter(function (elt) {return !!elt;});
textpattern.Route.attached.forEach(function (data, index) {
if (!custom && data.page === '' || data.page === options.event || data.page === '.' + options.step || data.page === options.event + '.' + options.step) {
data.fn({
Expand Down Expand Up @@ -1446,7 +1446,7 @@ textpattern.decodeHTML = function (string) {
div.innerHTML = string.trim();

return div.content;
}
};

/**
* Translates given substrings.
Expand Down Expand Up @@ -2132,7 +2132,7 @@ textpattern.Route.add('article', function () {
} else {
$('#body, #excerpt').off('input', txp_article_preview);
}
})
});

textpattern.Relay.register('article.preview',
function (e) {
Expand Down Expand Up @@ -2194,8 +2194,8 @@ textpattern.Route.add('article', function () {


textpattern.Route.add('article.init', function () {
$('.txp-textfilter-options .jquery-ui-selectmenu').trigger('selectmenuchange')
})
$('.txp-textfilter-options .jquery-ui-selectmenu').trigger('selectmenuchange');
});

textpattern.Route.add('file, image', function () {
if (!$('#txp-list-container').length) return;
Expand Down

0 comments on commit 64b4e68

Please sign in to comment.