mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
chore(helpers) change default debounce wait to 0
This commit is contained in:
@ -291,7 +291,7 @@ export function domControllerAsync(domControllerFunction: Function, callback?: F
|
||||
});
|
||||
}
|
||||
|
||||
export function debounce(func: Function, wait = 250) {
|
||||
export function debounce(func: Function, wait = 0) {
|
||||
let timer: number;
|
||||
return (...args: any[]): void => {
|
||||
clearTimeout(timer);
|
||||
|
Reference in New Issue
Block a user