Przeglądaj źródła

change constructor names

Lutz Roeder 15 lat temu
rodzic
commit
f81be0fa68

+ 1 - 1
Source/Connection.js

@@ -1,5 +1,5 @@
 
-function Connection(from, to)
+Connection = function(from, to)
 {
 	this.from = from;
 	this.to = to;

+ 1 - 1
Source/Connector.js

@@ -1,5 +1,5 @@
 
-function Connector(owner, template)
+Connector = function(owner, template)
 {
 	this.owner = owner;
 	this.template = template;

+ 1 - 1
Source/ContainerUndoUnit.js

@@ -1,5 +1,5 @@
 
-function ContainerUndoUnit()
+ContainerUndoUnit = function()
 {
 	this.undoUnits = [];
 }

+ 1 - 1
Source/ContentChangedUndoUnit.js

@@ -1,5 +1,5 @@
 
-function ContentChangedUndoUnit(element, content)
+ContentChangedUndoUnit = function(element, content)
 {
 	this.element = element;
 	this.undoContent = element.content;

+ 1 - 1
Source/DeleteConnectionUndoUnit.js

@@ -1,5 +1,5 @@
 
-function DeleteConnectionUndoUnit(connection)
+DeleteConnectionUndoUnit = function(connection)
 {
 	this.connection = connection;
 	this.from = connection.from;

+ 1 - 1
Source/DeleteElementUndoUnit.js

@@ -1,5 +1,5 @@
 
-function DeleteElementUndoUnit(element)
+DeleteElementUndoUnit = function(element)
 {
 	this.element = element;
 	this.owner = this.element.owner;

+ 1 - 1
Source/Element.js

@@ -1,5 +1,5 @@
 
-function Element(template, point)
+Element = function(template, point)
 {
 	this.template = template;
 	this.rectangle = new Rectangle(point.x, point.y, template.defaultWidth, template.defaultHeight);

+ 1 - 1
Source/Graph.js

@@ -1,5 +1,5 @@
 
-function Graph(element)
+Graph = function(element)
 {
 	this.canvas = element;
 	this.canvas.focus();

+ 1 - 1
Source/InsertConnectionUndoUnit.js

@@ -1,5 +1,5 @@
 
-function InsertConnectionUndoUnit(connection, from, to)
+InsertConnectionUndoUnit = function(connection, from, to)
 {
 	this.connection = connection;
 	this.from = from;

+ 1 - 1
Source/InsertElementUndoUnit.js

@@ -1,5 +1,5 @@
 
-function InsertElementUndoUnit(element, owner)
+InsertElementUndoUnit = function(element, owner)
 {
 	this.element = element;
 	this.owner = owner;

+ 1 - 1
Source/Rectangle.js

@@ -1,5 +1,5 @@
 
-function Rectangle(x, y, width, height)
+Rectangle = function(x, y, width, height)
 {
 	this.x = x;
 	this.y = y;

+ 1 - 1
Source/Selection.js

@@ -1,5 +1,5 @@
 
-function Selection(startPoint)
+Selection = function(startPoint)
 {
 	this.startPoint = startPoint;
 	this.currentPoint = startPoint;

+ 1 - 1
Source/SelectionUndoUnit.js

@@ -1,5 +1,5 @@
 
-function SelectionUndoUnit()
+SelectionUndoUnit = function()
 {
 	this.states = [];
 }

+ 1 - 1
Source/Tracker.js

@@ -1,5 +1,5 @@
 
-function Tracker(rectangle, resizable)
+Tracker = function(rectangle, resizable)
 {
 	this.rectangle = new Rectangle(rectangle.x, rectangle.y, rectangle.width, rectangle.height);
 	this.resizable = resizable;

+ 1 - 1
Source/TransformUndoUnit.js

@@ -1,5 +1,5 @@
 
-function TransformUndoUnit(element, undoRectangle, redoRectangle)
+TransformUndoUnit = function(element, undoRectangle, redoRectangle)
 {
 	this.element = element;
 	this.undoRectangle = new Rectangle(undoRectangle.x, undoRectangle.y, undoRectangle.width, undoRectangle.height);

+ 1 - 1
Source/UndoService.js

@@ -1,5 +1,5 @@
 
-function UndoService()
+UndoService = function()
 {
 	this.container = null;
 	this.stack = [];