Bug message: Uncaught y must be defined, line:8, :http://app.wisemapping.com/js/core.js

TypeError: Cannot call method 'eval' of null
This commit is contained in:
Paulo Gustavo Veiga 2012-08-28 20:54:57 -03:00
parent 4288ad52dc
commit 7e8745f875

View File

@ -47,7 +47,7 @@ mindplot.util.Shape =
var size = topic.getSize();
var position = topic.getPosition();
var div = (position.x - controlPoint.x);
div = (Math.mod(div) > 0.1 ? div : 0.1); // Prevent division by 0.
div = (Math.abs(div) > 0.1 ? div : 0.1); // Prevent division by 0.
var m = (position.y - controlPoint.y) / div;
var y, x;