Commit d4b0d180 authored by HERBERT Ryan's avatar HERBERT Ryan Committed by Vidjil Team
Browse files

model_loader.js this js, not python!!

Fixed a bug in the hotfix where I used a python method of checking the
presence of a string in an array.
parent 77f94620
......@@ -416,7 +416,7 @@ Model_loader.prototype = {
var copy_exceptions = ['log', 'producer']
//replace names, timestamps, order...
for (var key in s)
if (!(key in copy_exceptions) && s[key].length == this.samples.number)
if ((copy_exceptions.indexOf(key) == -1) && s[key].length == this.samples.number)
this.samples[key] = s[key]
}
......
Supports Markdown
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