Commit d4801e20 authored by techird's avatar techird

bug fixes

parent 2793e370
Subproject commit b1fcdefccfb10ab2d1dce672a07bced54e05f949
Subproject commit 37bf46da77a793cba3dde1a78dd83918c12f94ae
......@@ -134,7 +134,8 @@ define(function(require, exports, module) {
kity.extendClass(MinderNode, {
isSelected: function() {
return this.getMinder().getSelectedNodes().indexOf(this) != -1;
var minder = this.getMinder();
return minder && minder.getSelectedNodes().indexOf(this) != -1;
}
});
......
......@@ -22,7 +22,7 @@ define(function(require, exports, module) {
// jscs:disable maximumLineLength
var FRAME_PATH = 'M10,0C4.477,0,0,4.477,0,10c0,5.523,4.477,10,10,10s10-4.477,10-10C20,4.477,15.523,0,10,0zM10,18c-4.418,0-8-3.582-8-8s3.582-8,8-8s8,3.582,8,8S14.418,18,10,18z';
var FRAME_GRAD = new kity.LinearGradientBrush().pipe(function(g) {
var FRAME_GRAD = new kity.LinearGradient().pipe(function(g) {
g.setStartPosition(0, 0);
g.setEndPosition(0, 1);
g.addStop(0, '#fff');
......
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