fixing bugs

This commit is contained in:
Pablo Luna
2011-04-16 21:41:06 +01:00
parent 60ab4c7f5d
commit f73737ed0b
49 changed files with 214 additions and 186 deletions

View File

@@ -18,7 +18,7 @@
mindplot.BoardEntry = function(lowerLimit, upperLimit, order)
{
if (lowerLimit && upperLimit)
if (core.Utils.isDefined(lowerLimit) && core.Utils.isDefined(upperLimit))
{
core.assert(lowerLimit < upperLimit, 'lowerLimit can not be greater that upperLimit');
}
@@ -102,20 +102,20 @@ mindplot.BoardEntry.prototype.update = function()
mindplot.BoardEntry.prototype.setTopic = function(topic, updatePosition)
{
if (!core.Utils.isDefined(updatePosition))
if (!core.Utils.isDefined(updatePosition) || (core.Utils.isDefined(updatePosition) && !updatePosition))
{
updatePosition = true;
}
this._topic = topic;
if (topic)
if (core.Utils.isDefined(topic))
{
// Fixed positioning. Only for main topic ...
var position = null;
var topicPosition = topic.getPosition();
// Must update position base on the border limits?
if (this._xPos)
if (core.Utils.isDefined(this._xPos))
{
position = new core.Point();