@@ -1,5 +1,5 @@
-function Connection(from, to)
+Connection = function(from, to)
{
this.from = from;
this.to = to;
-function Connector(owner, template)
+Connector = function(owner, template)
this.owner = owner;
this.template = template;
-function ContainerUndoUnit()
+ContainerUndoUnit = function()
this.undoUnits = [];
}
-function ContentChangedUndoUnit(element, content)
+ContentChangedUndoUnit = function(element, content)
this.element = element;
this.undoContent = element.content;
-function DeleteConnectionUndoUnit(connection)
+DeleteConnectionUndoUnit = function(connection)
this.connection = connection;
this.from = connection.from;
-function DeleteElementUndoUnit(element)
+DeleteElementUndoUnit = function(element)
this.owner = this.element.owner;
-function Element(template, point)
+Element = function(template, point)
this.rectangle = new Rectangle(point.x, point.y, template.defaultWidth, template.defaultHeight);
-function Graph(element)
+Graph = function(element)
this.canvas = element;
this.canvas.focus();
-function InsertConnectionUndoUnit(connection, from, to)
+InsertConnectionUndoUnit = function(connection, from, to)
-function InsertElementUndoUnit(element, owner)
+InsertElementUndoUnit = function(element, owner)
-function Rectangle(x, y, width, height)
+Rectangle = function(x, y, width, height)
this.x = x;
this.y = y;
-function Selection(startPoint)
+Selection = function(startPoint)
this.startPoint = startPoint;
this.currentPoint = startPoint;
-function SelectionUndoUnit()
+SelectionUndoUnit = function()
this.states = [];
-function Tracker(rectangle, resizable)
+Tracker = function(rectangle, resizable)
this.rectangle = new Rectangle(rectangle.x, rectangle.y, rectangle.width, rectangle.height);
this.resizable = resizable;
-function TransformUndoUnit(element, undoRectangle, redoRectangle)
+TransformUndoUnit = function(element, undoRectangle, redoRectangle)
this.undoRectangle = new Rectangle(undoRectangle.x, undoRectangle.y, undoRectangle.width, undoRectangle.height);
-function UndoService()
+UndoService = function()
this.container = null;
this.stack = [];