mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Have ToolEvent extend Event and move #modifiers documentation there.
This commit is contained in:
parent
38003b6818
commit
bcff3932b6
2 changed files with 6 additions and 10 deletions
|
@ -14,7 +14,7 @@
|
|||
* All rights reserved.
|
||||
*/
|
||||
|
||||
var ToolEvent = this.ToolEvent = Base.extend({
|
||||
var ToolEvent = this.ToolEvent = Event.extend({
|
||||
/** @lends ToolEvent# */
|
||||
|
||||
beans: true,
|
||||
|
@ -163,15 +163,6 @@ var ToolEvent = this.ToolEvent = Base.extend({
|
|||
= count;
|
||||
},
|
||||
|
||||
// DOCS: document ToolEvent#modifiers
|
||||
/**
|
||||
* @type object
|
||||
* @bean
|
||||
*/
|
||||
getModifiers: function() {
|
||||
return Key.modifiers;
|
||||
},
|
||||
|
||||
// TODO: Implement hitTest first
|
||||
// getItem: function() {
|
||||
// if (this.item == null) {
|
||||
|
|
|
@ -35,6 +35,11 @@ var Event = this.Event = Base.extend({
|
|||
this.preventDefault();
|
||||
},
|
||||
|
||||
// DOCS: Document Event#modifiers
|
||||
/**
|
||||
* @type object
|
||||
* @bean
|
||||
*/
|
||||
getModifiers: function() {
|
||||
return Key.modifiers;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue