Hi Xavier:
Thanks a lot for the great work.
I was working with joli.js , and needed to retrieve the values of a record directly. I suppose we need to use the toArray method.
If that's the case I've noticed that you are initializing the return object as an array but assigning string keys to it. As a result the return value is an empty array.
Should it not be initialized as an object?
toArray: function() {
var result = {};
Hi Xavier: Thanks a lot for the great work. I was working with joli.js , and needed to retrieve the values of a record directly. I suppose we need to use the toArray method. If that's the case I've noticed that you are initializing the return object as an array but assigning string keys to it. As a result the return value is an empty array. Should it not be initialized as an object? toArray: function() { var result = {};
instead of: toArray: function() { var result = [];
I've changed that and I get the desired result (my desired result). Might I be breaking something?