提交 c34d9952 编写于 作者: J Jason Park

fix minor bug

上级 07d6e97b
......@@ -46,10 +46,11 @@ var loadFile = function (category, algorithm, file, explanation) {
dataEditor.setValue(cachedFile[dir].data, -1);
codeEditor.setValue(cachedFile[dir].code, -1);
} else {
cachedFile[dir] = {};
dataEditor.setValue('');
codeEditor.setValue('');
$.get(dir + 'data.js', function (data) {
cachedFile[dir] = {data: data};
cachedFile[dir].data = data;
dataEditor.setValue(data, -1);
$.get(dir + 'code.js', function (code) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册