Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

设置delay 延迟筛选执行不起作用 #119

Open
guojunsky opened this issue Apr 28, 2015 · 0 comments
Open

设置delay 延迟筛选执行不起作用 #119

guojunsky opened this issue Apr 28, 2015 · 0 comments

Comments

@guojunsky
Copy link

设置delay 延迟筛选执行不起作用,我看了一下代码,可能是input模块有一处代码有问题 ,这个if 是否反了 不是ie6-8 执行else模块,请确认一下 ,下个版本希望完善哦 3qo
if (!lteIE9) {
input.on('input.autocomplete', wrapFn(this._change, this));
} else {
var that = this,
events = ['keydown.autocomplete', 'keypress.autocomplete', 'cut.autocomplete', 'paste.autocomplete'].join(' ');

  input.on(events, wrapFn(function (e) {
    if (specialKeyCodeMap[e.which]) return;

    clearTimeout(timer);
    timer = setTimeout(function () {
      that._change.call(that, e);
    }, this.get('delay'));
  }, this));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant