Attribute value turning into array unexpectedly when creating object in javascript dojo
===

I have below function in my dojo class:


dojo.declare("someclass", null, {

    getSomeObject: function(id, name, description) {
        console.log("id=", id, ", name=", name, ", description=", description);
        var newObj = {
            "id": id,
            "name": name,
            "description": description
        };
        console.log("newObj=", newObj);
        return newObj;
    }

});

This was fine until I upgraded the product I was working on. When I run the code now, somehow inside "newObj", all attribute values are turned into array - i.e. when "123" is passed as id value to function, inside newObj, "id" attribute value is ["123"].

I have tried using different ways to create object - with "new Object()", etc. Nothing seems to help. When I run the same code in the old product, it works as expected!!!

Any help???