mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-12 22:18:54 -04:00
Remove deprecated onOptions.
This commit is contained in:
parent
37f982e53f
commit
7034f8241b
1 changed files with 5 additions and 6 deletions
|
@ -134,14 +134,13 @@ var PaperScript = this.PaperScript = new function() {
|
|||
var doc = paper.document,
|
||||
tool = paper.tool = /on(?:Key|Mouse)(?:Up|Down|Move|Drag)/.test(code)
|
||||
&& new Tool(null, doc),
|
||||
onEditOptions, onOptions, onSelect, onDeselect, onReselect,
|
||||
onMouseDown, onMouseUp, onMouseDrag, onMouseMove, onKeyDown,
|
||||
onKeyUp,
|
||||
onEditOptions, onSelect, onDeselect, onReselect, onMouseDown,
|
||||
onMouseUp, onMouseDrag, onMouseMove, onKeyDown, onKeyUp,
|
||||
res = eval(compile(code));
|
||||
if (tool) {
|
||||
Base.each(['onEditOptions', 'onOptions', 'onSelect',
|
||||
'onDeselect', 'onReselect', 'onMouseDown', 'onMouseUp',
|
||||
'onMouseDrag', 'onMouseMove', 'onKeyDown', 'onKeyUp'],
|
||||
Base.each(['onEditOptions', 'onSelect', 'onDeselect',
|
||||
'onReselect', 'onMouseDown', 'onMouseUp', 'onMouseDrag',
|
||||
'onMouseMove', 'onKeyDown', 'onKeyUp'],
|
||||
function(key) {
|
||||
tool[key] = eval(key);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue