Fix linting.

This commit is contained in:
Guo Xiang Tan 2018-11-26 09:38:22 +08:00
parent 57e2f4990d
commit d4aaa968bb
1 changed files with 9 additions and 7 deletions

View File

@ -995,13 +995,15 @@ export default Ember.Component.extend({
resolveAllShortUrls(ajax); resolveAllShortUrls(ajax);
let inline = {}; let inline = {};
$(`a.${INLINE_ONEBOX_LOADING_CSS_CLASS}`, $preview).each((index, link) => { $(`a.${INLINE_ONEBOX_LOADING_CSS_CLASS}`, $preview).each(
(index, link) => {
const $link = $(link); const $link = $(link);
$link.removeClass(INLINE_ONEBOX_LOADING_CSS_CLASS); $link.removeClass(INLINE_ONEBOX_LOADING_CSS_CLASS);
const text = $link.text(); const text = $link.text();
inline[text] = inline[text] || []; inline[text] = inline[text] || [];
inline[text].push($link); inline[text].push($link);
}); }
);
if (Object.keys(inline).length > 0) { if (Object.keys(inline).length > 0) {
Ember.run.debounce(this, this._loadInlineOneboxes, inline, 450); Ember.run.debounce(this, this._loadInlineOneboxes, inline, 450);
} }