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(
|
||||||
const $link = $(link);
|
(index, link) => {
|
||||||
$link.removeClass(INLINE_ONEBOX_LOADING_CSS_CLASS);
|
const $link = $(link);
|
||||||
const text = $link.text();
|
$link.removeClass(INLINE_ONEBOX_LOADING_CSS_CLASS);
|
||||||
inline[text] = inline[text] || [];
|
const text = $link.text();
|
||||||
inline[text].push($link);
|
inline[text] = inline[text] || [];
|
||||||
});
|
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