[incubator-echarts] branch master updated: fix: bug when graph data is number typed. Fix #10485

2019-05-28 Thread ovilia
This is an automated email from the ASF dual-hosted git repository.

ovilia pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git


The following commit(s) were added to refs/heads/master by this push:
 new 01a78a3  fix: bug when graph data is number typed. Fix #10485
01a78a3 is described below

commit 01a78a38fdedc335652ae5015de01568be12db39
Author: Ovilia 
AuthorDate: Mon May 27 17:25:02 2019 +0800

fix: bug when graph data is number typed. Fix #10485
---
 src/data/Graph.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/data/Graph.js b/src/data/Graph.js
index 310a2fc..d86ab0c 100644
--- a/src/data/Graph.js
+++ b/src/data/Graph.js
@@ -101,7 +101,7 @@ graphProto.isDirected = function () {
  * @param {number} [dataIndex]
  */
 graphProto.addNode = function (id, dataIndex) {
-id = id || ('' + dataIndex);
+id = id == null ? ('' + dataIndex) : ('' + id);
 
 var nodesMap = this._nodesMap;
 


-
To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org
For additional commands, e-mail: commits-h...@echarts.apache.org



[incubator-echarts] branch fix-10485 deleted (was 4640745)

2019-05-28 Thread ovilia
This is an automated email from the ASF dual-hosted git repository.

ovilia pushed a change to branch fix-10485
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git.


 was 4640745  fix: bug when graph data is number typed. Fix #10485

The revisions that were on this branch are still contained in
other references; therefore, this change does not discard any commits
from the repository.


-
To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org
For additional commands, e-mail: commits-h...@echarts.apache.org