Home Demos Forum Research Guide
Viewing topic in forum 'bugs'
back to topic list

Queue length doesn't decrease
Don't know if this is an error but I noticed that when calling the service() function in the Queue component the length doesn't decrease even though the object has been removed from the Queue
by adetolaraphael on 2015-05-31 23:03:26 (1 reply)


This is an error - thanks for reporting it. As you probably noticed, to correct it you need to add:

length --;

Just above the line

return current.item;

Within the Queue:service() function of components/data/adt/Queue.dn

We'll include this fix in this week's update on Friday, but the above should work in the mean time.

- Barry
by barry on 2015-06-01 06:58:36
© Francis Research Ltd. 2017