Commit 96fc90cf authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

js/autocomplete.js, js/database.js: jshint

parent 32654856
......@@ -203,12 +203,12 @@ VidjilAutoComplete.prototype = {
// remove duplicates
var seen = [];
loaded_data = loaded_data.filter(function(elem) {
var res = seen.indexOf(elem['name']);
var res = seen.indexOf(elem.name);
if (res < 0) {
seen.push(elem['name']);
seen.push(elem.name);
}
return res;
});
})
$input.atwho('load', at, loaded_data);;
// This trigger at.js again
......
......@@ -279,7 +279,7 @@ Database.prototype = {
var args = {};
args[type] = name;
args[param] = name;
args['type'] = sample_type;
args.type = sample_type;
this.call(href, args);
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment