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:
Jim Cowart 2011-09-11 00:49:14 -04:00
parent cfd8ed742d
commit 00e48870cd

View file

@ -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;
}
});