mirror of
https://github.com/Hopiu/postal.js.git
synced 2026-04-29 19:14:43 +00:00
Added call to set the config callback to wrapped modifier version since I was a big dummy and forgot it to begin with
This commit is contained in:
parent
cfd8ed742d
commit
00e48870cd
1 changed files with 4 additions and 4 deletions
|
|
@ -64,16 +64,16 @@ var localBus = {
|
|||
fn = config.callback;
|
||||
switch(modifier.type) {
|
||||
case 'delay':
|
||||
wrapWithDelay(fn, modifier);
|
||||
config.callback = wrapWithDelay(fn, modifier);
|
||||
break;
|
||||
case 'defer':
|
||||
wrapWithDefer(fn);
|
||||
config.callback = wrapWithDefer(fn);
|
||||
break;
|
||||
case 'throttle':
|
||||
wrapWithThrottle(fn,modifier);
|
||||
config.callback = wrapWithThrottle(fn,modifier);
|
||||
break;
|
||||
case 'debounce':
|
||||
wrapWithDebounce(fn, modifier);
|
||||
config.callback = wrapWithDebounce(fn, modifier);
|
||||
break;
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue