I fixed a bug today that prevented a Clumpy
instance from being re-used. You can download the latest version here.
Also, I just published some unit tests for Clumpy. You can help keep Clumpy stable by submitting new test cases.
I fixed a bug today that prevented a Clumpy
instance from being re-used. You can download the latest version here.
Also, I just published some unit tests for Clumpy. You can help keep Clumpy stable by submitting new test cases.
5 Responses
Hello,
I have an issue with Clumpy's for_in_loop(). The keys of the object to loop over are extracted synchronously. When chained after a Clumpy loop which modifies the object then it won't work as I would expect:
Anyway, Clumpy is a great library, I use it quite often, thanks.
Thanks, Vas, good catch! I'll see if I can find a good solution.
It's fixed. Here's the latest version: http://www.tumuski.com/library/Clumpy/Clumpy-2012-10-31.js
Also I named a test case after you:
http://www.tumuski.com/code/clumpy/unit-tests/
I've thought of another problem with this, but fixing that will require changing the interface of Clumpy.
The bug fix above makes Clumpy wait until the loop is executed before it reads the *properties* of the object. But if the variable "o" is assigned a new value asynchronously, the old value is still the one used. I'll need to change it so that for_in_loop works like this:
I can have it automatically detect whether the first argument is a function or not, for backward compatibility. But I'll also need to add an option for using it the old way, in case anyone out there is already passing a function as the object to iterate over.
Update: http://www.tumuski.com/2013/04/clumpy-interface-is-changing/