Skip to content
This repository was archived by the owner on Apr 5, 2025. It is now read-only.

Commit 59291e6

Browse files
committed
fixing style parsing in base64 data source
1 parent 0346d46 commit 59291e6

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/idd/idd.readers.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,15 +185,14 @@ InteractiveDataDisplay.readBase64 = function (jqDiv) {
185185
contentData = contentData.trim(); // trim data
186186
var splitWords = function (line) { return line.split(/\s+/g); };
187187
var lines = contentData.split(/\n/g);
188-
var N = lines.length;
189-
result = {}
188+
var N = lines.length;
190189
for(var i=0; i<N; i++) {
191190
var words = splitWords(lines[i].trim());
192191
var name = words[0]
193192
words.splice(0,1)
194193
var value = decodeBase64Array(words)
195-
result[name] = value
196-
}
197-
return result
194+
data[name] = value
195+
}
198196
}
197+
return data
199198
}

0 commit comments

Comments
 (0)