Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kityminder-core
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
吴志俊
kityminder-core
Commits
4b1d56d2
Commit
4b1d56d2
authored
Jan 22, 2016
by
张博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(resource): continue to fixed bug of resource item is null
parent
a02aec9e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
resource.js
src/module/resource.js
+11
-9
No files found.
src/module/resource.js
View file @
4b1d56d2
...
...
@@ -256,20 +256,22 @@ define(function(require, exports, module) {
var
spaceRight
=
node
.
getStyle
(
'space-right'
);
var
overlays
=
this
.
overlays
;
var
resource
=
node
.
getData
(
'resource'
);
var
minder
=
node
.
getMinder
();
var
i
,
overlay
,
x
;
x
=
0
;
for
(
i
=
0
;
i
<
resource
.
length
;
i
++
)
{
/* 修复 resource 数组中出现 null 的 bug
* @Author zhangbobell
* @date 2016-01-15
*/
if
(
!
resource
[
i
])
{
continue
;
var
resource
=
node
.
getData
(
"resource"
).
filter
(
function
(
ele
)
{
return
ele
!==
null
;
});
if
(
resource
.
length
===
0
)
{
return
;
}
var
minder
=
node
.
getMinder
();
var
i
,
overlay
,
x
;
x
=
0
;
for
(
i
=
0
;
i
<
resource
.
length
;
i
++
)
{
x
+=
spaceRight
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment