diff -r a39ff507b050 -r 165f236e42f2 src/js/model.js --- a/src/js/model.js Fri Jul 27 19:22:25 2012 +0200 +++ b/src/js/model.js Fri Jul 27 19:22:54 2012 +0200 @@ -94,12 +94,8 @@ IriSP.Model.List.prototype = new Array(); -IriSP.Model.List.prototype.getElement = function(_id) { - return this[_id]; -} - IriSP.Model.List.prototype.hasId = function(_id) { - return (IriSP._(this.idIndex).indexOf(_id) !== -1); + return IriSP._(this.idIndex).include(_id); } /* On recent browsers, forEach and map are defined and do what we want.