sebastien-roch/Jquery-Async-queue — Issue #1: storeData not storing data?
Author: RangerRick
Created: 2012-02-29 19:14:08+00:00
State: open

I'm still struggling with dealing with scope, but I'm having trouble with "storeData" data not actually being passed on to the next entry in the queue. An example where I'm attempting it is my code here:

https://github.com/RangerRick/JoCo/blob/4560c27bc7fe61ad58b4eb66e365469f86e048c3/app/dao/calendarevent.js#L69

...when I run this code, I'm not getting the result set data passed in when the "saveResults" function gets called. The console logs show this:

2012-02-29 14:07:43,957 [DEBUG] saving title (2012-02-02T04:14:76 to 2012-02-03T04:14:76) log4javascript.js:154
2012-02-29 14:07:43,957 [DEBUG] _idExists(q, 8) log4javascript.js:154
2012-02-29 14:07:44,208 [DEBUG] _idExists: got 0 results ([object SQLResultSet]) log4javascript.js:154
2012-02-29 14:07:44,209 [DEBUG] _save(q, undefined) calendarevent.js:115
Uncaught TypeError: Cannot read property 'rows' of undefined

Is there a problem in how I'm using this? Or is the stored data getting stepped on somehow?