Skip to content

Commit

Permalink
feat(release): fix resource color splash and hasOwnProperty bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangbobell committed Mar 23, 2017
1 parent a20e2a1 commit bac91ac
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "kityminder-core",
"title": "Kity Minder Core",
"description": "Powerful online mind graphic visualization and editor (command based)",
"version": "1.4.36",
"version": "1.4.37",
"main": [
"dist/kityminder.core.min.js",
"dist/kityminder.core.css"
Expand Down
10 changes: 5 additions & 5 deletions dist/kityminder.core.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* ====================================================
* kityminder - v1.4.36 - 2017-03-10
* kityminder - v1.4.37 - 2017-03-23
* https://github.com/fex-team/kityminder-core
* GitHub: https://github.com/fex-team/kityminder-core.git
* Copyright (c) 2017 Baidu FEX; Licensed MIT
Expand Down Expand Up @@ -1969,7 +1969,7 @@ _p[19] = {
this.fire("finishInitHook");
}
});
Minder.version = "1.4.36";
Minder.version = "1.4.37";
Minder.registerInitHook = function(hook) {
_initHooks.push(hook);
};
Expand Down Expand Up @@ -6660,7 +6660,7 @@ _p[57] = {
getResourceColor: function(resource) {
var colorMapping = this._getResourceColorIndexMapping();
var nextIndex;
if (!colorMapping.__proto__.hasOwnProperty(resource)) {
if (!Object.prototype.hasOwnProperty.call(colorMapping, resource)) {
// 找不到找下个可用索引
nextIndex = this._getNextResourceColorIndex();
colorMapping[resource] = nextIndex;
Expand All @@ -6677,7 +6677,7 @@ _p[57] = {
var mapping = this._getResourceColorIndexMapping();
var used = [], resource;
for (resource in mapping) {
if (mapping.hasOwnProperty(resource)) {
if (Object.prototype.hasOwnProperty.call(mapping, resource)) {
used.push(resource);
}
}
Expand All @@ -6696,7 +6696,7 @@ _p[57] = {
used = [];
// 抽取已经使用的值到 used 数组
for (resource in colorMapping) {
if (colorMapping.hasOwnProperty(resource)) {
if (Object.prototype.hasOwnProperty.call(colorMapping, resource)) {
used.push(colorMapping[resource]);
}
}
Expand Down
6 changes: 3 additions & 3 deletions dist/kityminder.core.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "kityminder",
"title": "kityminder",
"description": "KityMinder Core Implement",
"version": "1.4.36",
"version": "1.4.37",
"homepage": "https://github.com/fex-team/kityminder-core",
"author": {
"name": "Baidu FEX",
Expand Down
2 changes: 1 addition & 1 deletion src/core/minder.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ define(function(require, exports, module) {
}
});

Minder.version = '1.4.36';
Minder.version = '1.4.37';

Minder.registerInitHook = function(hook) {
_initHooks.push(hook);
Expand Down

0 comments on commit bac91ac

Please sign in to comment.