diff --git a/src/model_local_storage.js b/src/model_local_storage.js index 2e4ccd4..8f89d82 100644 --- a/src/model_local_storage.js +++ b/src/model_local_storage.js @@ -30,14 +30,14 @@ Model.LocalStorage = function(klass) { var addToIndex = function(uid) { var uids = readIndex() - if (uids.indexOf(uid) === -1) { + if (jQuery.inArray(uid, uids) === -1) { uids.push(uid) writeIndex(uids) } } var removeFromIndex = function(uid) { var uids = readIndex() - var index = uids.indexOf(uid) + var index = jQuery.inArray(uid, uids) if (index > -1) { uids.splice(index, 1)