Fix failing using tests. Legacy will contain a set of images to be removed in the future.

This commit is contained in:
Paulo Veiga
2011-11-27 21:28:39 -03:00
parent 923cd8ae11
commit 0b6fcdb980
173 changed files with 5 additions and 4 deletions

View File

@@ -824,7 +824,7 @@ mindplot.Topic = new Class({
* Point: references the center of the rect shape.!!!
*/
setPosition : function(point) {
$assert(point,"position can not be null");
$assert(point, "position can not be null");
// Update model's position ...
var model = this.getModel();
@@ -852,7 +852,7 @@ mindplot.Topic = new Class({
this._iuCache['position'] = point;
}
if (!$defined(currentPos) || currentPos.x != point.x || currentPos.y != point.y) {
if (!$defined(currentPos) || parseInt(currentPos.x) != parseInt(point.x) || parseInt(currentPos.y) != parseInt(point.y)) {
// Fire Listener events ...
mindplot.EventBus.instance.fireEvent(mindplot.EventBus.events.NodeMoveEvent, [this]);