提交 a5c6eb3c 编写于 作者: L lang

Fix #2619

上级 b1299aa2
...@@ -61,6 +61,11 @@ define(function (require) { ...@@ -61,6 +61,11 @@ define(function (require) {
function ECharts (dom, theme, opts) { function ECharts (dom, theme, opts) {
opts = opts || {}; opts = opts || {};
// Get theme by name
if (typeof theme === 'string') {
theme = themeStorage[theme];
}
if (theme) { if (theme) {
each(optionPreprocessorFuncs, function (preProcess) { each(optionPreprocessorFuncs, function (preProcess) {
preProcess(theme); preProcess(theme);
...@@ -89,10 +94,6 @@ define(function (require) { ...@@ -89,10 +94,6 @@ define(function (require) {
devicePixelRatio: opts.devicePixelRatio devicePixelRatio: opts.devicePixelRatio
}); });
// Get theme by name
if (typeof theme === 'string') {
theme = themeStorage[theme];
}
/** /**
* @type {Object} * @type {Object}
* @private * @private
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册