Fix linting.
This commit is contained in:
parent
57e2f4990d
commit
d4aaa968bb
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue