mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-22 07:19:57 -05:00
Remove unused injection scopes.
This commit is contained in:
parent
44bf596e51
commit
c0e6d5b2ee
2 changed files with 52 additions and 56 deletions
|
@ -24,8 +24,7 @@
|
|||
*
|
||||
* @extends Event
|
||||
*/
|
||||
var KeyEvent = this.KeyEvent = Event.extend(new function() {
|
||||
return /** @lends KeyEvent# */{
|
||||
var KeyEvent = this.KeyEvent = Event.extend(/** @lends KeyEvent# */{
|
||||
initialize: function(down, key, character, event) {
|
||||
this.base(event);
|
||||
this.type = down ? 'keydown' : 'keyup';
|
||||
|
@ -64,5 +63,4 @@ var KeyEvent = this.KeyEvent = Event.extend(new function() {
|
|||
+ ', modifiers: ' + this.getModifiers()
|
||||
+ ' }';
|
||||
}
|
||||
};
|
||||
});
|
||||
|
|
|
@ -19,8 +19,7 @@
|
|||
*
|
||||
* @extends Event
|
||||
*/
|
||||
var MouseEvent = this.MouseEvent = Event.extend(new function() {
|
||||
return /** @lends MouseEvent# */{
|
||||
var MouseEvent = this.MouseEvent = Event.extend(/** @lends MouseEvent# */{
|
||||
initialize: function(type, point, target, event) {
|
||||
this.base(event);
|
||||
this.type = type;
|
||||
|
@ -38,5 +37,4 @@ var MouseEvent = this.MouseEvent = Event.extend(new function() {
|
|||
+ ', modifiers: ' + this.getModifiers()
|
||||
+ ' }';
|
||||
}
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue