Quote Originally Posted by iwtrading View Post
Is this a possible solution?
Code:
    queueChange:function(name, value) {
        var changed = undefined === this.state[name] || this.state[name] !== value;
        var o = {};
        if(changed) {
            o[this.paramNames.name] = name;
            o[this.paramNames.value] = this.encodeValue(value);
            var found = false;
            for (var ii=0; ii<this.queue.length-1; ii++) {
                if (this.queue[ii].name == o.name) {
                    this.queue[ii] = o;
                    found = true;
                }
            }
            if (!found) {
                this.queue.push(o);
            }
            this.dirty = true;
        }
        return changed;
    },
Bugfix:
Code:
...
            for (var ii=0; ii<this.queue.length; ii++) {
                if (this.queue[ii][this.paramNames.name] == o[this.paramNames.name]) {
                    this.queue[ii] = o;
                    found = true;
                }
            }
...