Move #toString() to the end.

This commit is contained in:
Jürg Lehni 2011-05-08 14:13:33 +01:00
parent 7034f8241b
commit aac87dba14

View file

@ -39,14 +39,6 @@ var ToolEvent = this.ToolEvent = Base.extend({
this.type = type; this.type = type;
this.event = event; this.event = event;
}, },
toString: function() {
return '{ type: ' + this.type
+ ', point: ' + this.point
+ ', count: ' + this.count
+ ', modifiers: ' + this.modifiers
+ ' }';
},
/** /**
* Convenience method to allow local overrides of point values. * Convenience method to allow local overrides of point values.
@ -215,4 +207,12 @@ var ToolEvent = this.ToolEvent = Base.extend({
// setItem: function(Item item) { // setItem: function(Item item) {
// this.item = item; // this.item = item;
// } // }
toString: function() {
return '{ type: ' + this.type
+ ', point: ' + this.point
+ ', count: ' + this.count
+ ', modifiers: ' + this.modifiers
+ ' }';
}
}); });