Skip to content

Commit

Permalink
DEV: removes _.delay from codebase (#6619)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjaffeux authored and ZogStriP committed Nov 19, 2018
1 parent c4ed353 commit 30e0d74
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/assets/javascripts/discourse/lib/autocomplete.js.es6
Expand Up @@ -398,10 +398,8 @@ export default function(options) {
$(window).on("click.autocomplete", () => closeAutocomplete());
$(this).on("click.autocomplete", () => closeAutocomplete());

$(this).on("paste.autocomplete", function() {
_.delay(function() {
me.trigger("keydown");
}, 50);
$(this).on("paste.autocomplete", () => {
Ember.run.later(() => me.trigger("keydown"), 50);
});

function checkTriggerRule(opts) {
Expand Down

0 comments on commit 30e0d74

Please sign in to comment.