Rename Event -> DomEvent and Element -> DomElement, to be more specific and not clash with other classes, e.g. a future base class for ToolEvent and KeyEvent.

This commit is contained in:
Jürg Lehni 2011-05-08 10:16:11 +01:00
parent 0e37f86156
commit 926fffee4a
12 changed files with 32 additions and 33 deletions

View file

@ -44,7 +44,7 @@
}
// Reposition the paths whenever the window is resized:
Event.add(window, {
DomEvent.add(window, {
resize: function(event) {
document.activeLayer.position = document.bounds.center;
}

View file

@ -11,7 +11,7 @@
// http://processing.org/learning/topics/flocking.html
// Reposition the heart path whenever the window is resized:
Event.add(window, {
DomEvent.add(window, {
resize: function(event) {
size = document.size;
heartPath.position = document.bounds.center;

View file

@ -64,7 +64,7 @@
gradientColor.hilite = mouseDown ? point : point + vector;
}
Event.add(window, {
DomEvent.add(window, {
resize: function(event) {
point = new Point(document.size) / 2;
path.bounds = document.bounds;

View file

@ -59,7 +59,7 @@
}
// Reposition the path whenever the window is resized:
Event.add(window, {
DomEvent.add(window, {
resize: function(event) {
initializePath();
onFrame();