if(!dojo.some(array, function(i){ return i == item; })){ array.push(item); this.view.invalidate(); } return this;