typicaljoe / taffydb

TaffyDB - an open source JavaScript Database for your browser
http://taffydb.com
MIT License
2.21k stars 285 forks source link

Query Callback error when including delay #176

Closed moyamejiasr closed 2 years ago

moyamejiasr commented 2 years ago

I'm Using version 2.7 and whenever I use the callback function with a delay after the function it crashes. Works fine without the delay though. Message:

/home/ricardo/testing/node_modules/taffydb/taffy.js:806
          f.call( that.getroot( that.context() ) );
            ^

TypeError: f.call is not a function
    at Timeout._onTimeout (/home/ricardo/testing/node_modules/taffydb/taffy.js:806:13)
moyamejiasr commented 2 years ago

After a while I noticed that the issue was with my local version of the package. I'l closing this issue.