Commit e02acc57 authored by 张博's avatar 张博

fix(view): fixed bug of naotu diplaying when the resource of node contains null

parent 41767e33
...@@ -262,6 +262,15 @@ define(function(require, exports, module) { ...@@ -262,6 +262,15 @@ define(function(require, exports, module) {
x = 0; x = 0;
for (i = 0; i < resource.length; i++) { for (i = 0; i < resource.length; i++) {
/* 修复 resource 数组中出现 null 的 bug
* @Author zhangbobell
* @date 2016-01-15
*/
if (!resource[i]) {
continue;
}
x += spaceRight; x += spaceRight;
overlay = overlays[i]; overlay = overlays[i];
......
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