Have ToolEvent extend Event and move #modifiers documentation there.

This commit is contained in:
Jürg Lehni 2011-06-16 21:20:30 +01:00
parent 38003b6818
commit bcff3932b6
2 changed files with 6 additions and 10 deletions

View file

@ -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) {

View file

@ -35,6 +35,11 @@ var Event = this.Event = Base.extend({
this.preventDefault();
},
// DOCS: Document Event#modifiers
/**
* @type object
* @bean
*/
getModifiers: function() {
return Key.modifiers;
}