Commit 45af4ee3 authored by zhangbobell's avatar zhangbobell

fix(resource): fixed bug when input a resource named hasOwnProperty

parent 60ddc009
......@@ -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;
......
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