mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-20 18:10:03 -04:00
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:
parent
0e37f86156
commit
926fffee4a
12 changed files with 32 additions and 33 deletions
src/util
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue