Remove unused #document from Tool.

This commit is contained in:
Jürg Lehni 2011-05-15 22:45:15 +01:00
parent 824870196e
commit f69b0a404a
2 changed files with 1 additions and 12 deletions

View file

@ -136,7 +136,7 @@ var PaperScript = this.PaperScript = new function() {
// TODO: Add support for multiple tools
var tool = scope.tool =
/on(?:Key|Mouse)(?:Up|Down|Move|Drag)/.test(code)
&& new Tool(null, doc);
&& new Tool(null, scope);
// Define variables for potential handlers, so eval() calls below to
// fetch their values do not require try-catch around them.
var onEditOptions, onSelect, onDeselect, onReselect, onMouseDown,

View file

@ -15,17 +15,6 @@
*/
var Tool = this.Tool = ToolHandler.extend({
beans: true,
initialize: function(handlers, doc) {
this.base(handlers, doc._scope);
this._document = doc;
},
getDocument: function() {
return this._document;
},
/**
* The fixed time delay between each call to the {@link #onMouseDrag}
* event. Setting this to an interval means the {@link #onMouseDrag}