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
45af4ee3
Commit
45af4ee3
authored
Mar 10, 2017
by
zhangbobell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(resource): fixed bug when input a resource named hasOwnProperty
parent
60ddc009
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
resource.js
src/module/resource.js
+1
-1
No files found.
src/module/resource.js
View file @
45af4ee3
...
...
@@ -56,7 +56,7 @@ define(function(require, exports, module) {
var
colorMapping
=
this
.
_getResourceColorIndexMapping
();
var
nextIndex
;
if
(
!
colorMapping
.
hasOwnProperty
(
resource
))
{
if
(
!
colorMapping
.
__proto__
.
hasOwnProperty
(
resource
))
{
// 找不到找下个可用索引
nextIndex
=
this
.
_getNextResourceColorIndex
();
colorMapping
[
resource
]
=
nextIndex
;
...
...
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