Commit 356831a7 authored by 张博's avatar 张博

feat(release): release v1.4.31

parent 4b1d56d2
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"name": "kityminder-core", "name": "kityminder-core",
"title": "Kity Minder Core", "title": "Kity Minder Core",
"description": "Powerful online mind graphic visualization and editor (command based)", "description": "Powerful online mind graphic visualization and editor (command based)",
"version": "1.4.30", "version": "1.4.31",
"main": [ "main": [
"dist/kityminder.core.min.js", "dist/kityminder.core.min.js",
"dist/kityminder.core.css" "dist/kityminder.core.css"
......
/*! /*!
* ==================================================== * ====================================================
* kityminder - v1.4.30 - 2016-01-22 * kityminder - v1.4.31 - 2016-01-22
* https://github.com/fex-team/kityminder-core * https://github.com/fex-team/kityminder-core
* GitHub: https://github.com/fex-team/kityminder-core.git * GitHub: https://github.com/fex-team/kityminder-core.git
* Copyright (c) 2016 Baidu FEX; Licensed MIT * Copyright (c) 2016 Baidu FEX; Licensed MIT
...@@ -1969,7 +1969,7 @@ _p[19] = { ...@@ -1969,7 +1969,7 @@ _p[19] = {
this.fire("finishInitHook"); this.fire("finishInitHook");
} }
}); });
Minder.version = "1.4.30"; Minder.version = "1.4.31";
Minder.registerInitHook = function(hook) { Minder.registerInitHook = function(hook) {
_initHooks.push(hook); _initHooks.push(hook);
}; };
...@@ -6809,18 +6809,20 @@ _p[57] = { ...@@ -6809,18 +6809,20 @@ _p[57] = {
update: function(container, node, box) { update: function(container, node, box) {
var spaceRight = node.getStyle("space-right"); var spaceRight = node.getStyle("space-right");
var overlays = this.overlays; 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 /* 修复 resource 数组中出现 null 的 bug
* @Author zhangbobell * @Author zhangbobell
* @date 2016-01-15 * @date 2016-01-15
*/ */
if (!resource[i]) { var resource = node.getData("resource").filter(function(ele) {
continue; 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; x += spaceRight;
overlay = overlays[i]; overlay = overlays[i];
if (!overlay) { if (!overlay) {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"name": "kityminder", "name": "kityminder",
"title": "kityminder", "title": "kityminder",
"description": "KityMinder Core Implement", "description": "KityMinder Core Implement",
"version": "1.4.30", "version": "1.4.31",
"homepage": "https://github.com/fex-team/kityminder-core", "homepage": "https://github.com/fex-team/kityminder-core",
"author": { "author": {
"name": "Baidu FEX", "name": "Baidu FEX",
......
...@@ -30,7 +30,7 @@ define(function(require, exports, module) { ...@@ -30,7 +30,7 @@ define(function(require, exports, module) {
} }
}); });
Minder.version = '1.4.30'; Minder.version = '1.4.31';
Minder.registerInitHook = function(hook) { Minder.registerInitHook = function(hook) {
_initHooks.push(hook); _initHooks.push(hook);
......
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