- Bug Cannot call method 'getChildren' of null, line:1955 fixed.
This commit is contained in:
@@ -335,7 +335,10 @@ mindplot.DesignerKeyboard = new Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
_goToBrother:function (designer, node, direction) {
|
_goToBrother:function (designer, node, direction) {
|
||||||
var brothers = node.getParent().getChildren();
|
var parent = node.getParent();
|
||||||
|
if (parent) {
|
||||||
|
var brothers = parent.getChildren();
|
||||||
|
|
||||||
var target = node;
|
var target = node;
|
||||||
var y = node.getPosition().y;
|
var y = node.getPosition().y;
|
||||||
var x = node.getPosition().x;
|
var x = node.getPosition().x;
|
||||||
@@ -368,6 +371,7 @@ mindplot.DesignerKeyboard = new Class({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
this._goToNode(designer, target);
|
this._goToNode(designer, target);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user