diff --git a/sites/all/modules/autosave/jquery.field.js b/sites/all/modules/autosave/jquery.field.js
index ee3984b..8eeaf83 100644
--- a/sites/all/modules/autosave/jquery.field.js
+++ b/sites/all/modules/autosave/jquery.field.js
@@ -645,7 +645,12 @@
 
 	// checks to see if a value exists in an array
 	var valueExists = function (a, v){
-		return ($.inArray(v, a) > -1);
+		for (var i=0; i<a.length; i++) {
+			if (a[i] == v) {
+				return true;
+			}
+		}
+		return false;
 	}
 
 	// correctly gets the type of an object (including array/dates)
