mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Remove unused #document from Tool.
This commit is contained in:
parent
824870196e
commit
f69b0a404a
2 changed files with 1 additions and 12 deletions
|
@ -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,
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue