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

@ -152,12 +152,12 @@ var PaperScript = this.PaperScript = new function() {
if (onFrame) {
function frame() {
// Request next frame already
Event.requestAnimationFrame(frame, doc && doc.canvas);
DomEvent.requestAnimationFrame(frame, doc && doc.canvas);
onFrame();
// Automatically redraw document each frame.
doc && doc.redraw();
}
Event.requestAnimationFrame(frame, doc && doc.canvas);
DomEvent.requestAnimationFrame(frame, doc && doc.canvas);
}
} catch (e) {
}
@ -209,7 +209,7 @@ var PaperScript = this.PaperScript = new function() {
}
}
Event.add(window, { load: load });
DomEvent.add(window, { load: load });
return {
compile: compile,