Commit 29b4f267 authored by 张博's avatar 张博

modified decodeData

parent 3719ebde
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"name": "kityminder-core", "name": "kityminder-core",
"title": "Kity Minder Core", "title": "Kity Minder Core",
"description": "Powerful online mind graphic visualization and editor (command based)", "description": "Powerful online mind graphic visualization and editor (command based)",
"version": "1.4.11", "version": "1.4.12",
"main": [ "main": [
"release/kityminder.core.min.js", "release/kityminder.core.min.js",
"release/kityminder.core.css" "release/kityminder.core.css"
......
...@@ -883,9 +883,7 @@ _p[11] = { ...@@ -883,9 +883,7 @@ _p[11] = {
}; };
// 导入前抛事件 // 导入前抛事件
this._fire(new MinderEvent("beforeimport", params)); this._fire(new MinderEvent("beforeimport", params));
return Promise.resolve(protocol.decode(data, this, option)).then(function(json) { return Promise.resolve(protocol.decode(data, this, option));
return json;
});
} }
}); });
} }
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -245,9 +245,7 @@ define(function(require, exports, module) { ...@@ -245,9 +245,7 @@ define(function(require, exports, module) {
// 导入前抛事件 // 导入前抛事件
this._fire(new MinderEvent('beforeimport', params)); this._fire(new MinderEvent('beforeimport', params));
return Promise.resolve(protocol.decode(data, this, option)).then(function(json) { return Promise.resolve(protocol.decode(data, this, option))
return json;
});
} }
}); });
}); });
\ No newline at end of file
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