- Bug Cannot call method 'getChildren' of null, line:1955 fixed.

This commit is contained in:
Paulo Gustavo Veiga 2012-09-03 20:54:18 -03:00
parent ca37d3f384
commit bcc5676b49

View File

@ -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);
}
}, },