Unable to select scenes over one thousand with the M4L javascript api

Cphas's icon

This seems like a bug but it may just be me being ignorant but using this code:

function select(a){
    liveView = new LiveAPI("live_set view");
    scene = new LiveAPI("live_set scenes "+a);
    post(scene.id, "n");
    liveView.set("selected_scene", "id", scene.id);
}

I am unable to select scenes beyond the thousandth (those with an index over 999) valid ids are produced but setting them as the selected scene only selects scene index 999. As I said before this seems to me to be a bug nut my javascript isn't great so I'd welcome any amendments anybody can make.