diff --git a/js/common/modules/org/arangodb/arango-collection-common.js b/js/common/modules/org/arangodb/arango-collection-common.js index f7d5238650..7b365829b0 100644 --- a/js/common/modules/org/arangodb/arango-collection-common.js +++ b/js/common/modules/org/arangodb/arango-collection-common.js @@ -682,7 +682,7 @@ ArangoCollection.prototype.iterate = function (iterator, options) { ArangoCollection.prototype.removeByExample = function (example, waitForSync) { var documents; -// TODO this is not optiomal for the client, there should a HTTP call handling +// TODO this is not optiomal for the client, there should be an HTTP call handling // everything on the server documents = this.byExample(example); diff --git a/js/server/ahuacatl.js b/js/server/ahuacatl.js index 72b7da7d5e..3083613ecc 100644 --- a/js/server/ahuacatl.js +++ b/js/server/ahuacatl.js @@ -95,7 +95,7 @@ function AHUACATL_INDEX (collection, indexTypes) { var index = indexes[i]; for (var j = 0; j < indexTypes.length; ++j) { - if (index.type == indexTypes[j]) { + if (index.type === indexTypes[j]) { return index.id; } }