src/js/model.js
branchnew-model
changeset 930 165f236e42f2
parent 925 28efc97b5d78
child 937 eb3c442cec50
--- 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.