Commit 90b99890 authored by Marc Duez's avatar Marc Duez
Browse files

germline_builder.js : parse bug germlineList >> convert javascript file gemlines.data to json

parent 56b44b57
......@@ -35,8 +35,9 @@ GermlineList.prototype = {
url: window.location.origin + "/germline/germlines.data",
success: function (result) {
try {
//remove comment
//remove comment (json don't have comment)
var json = result.replace(/ *\/\/[^\n]*\n */g , "")
//convert from js to json (json begin with { or [, never with a var name)
json = json.replace("germlines = " , "")
self.list = jQuery.parseJSON(json);
}
......
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