mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-03-13 16:33:28 -04:00
Add support for Item#removeOnMove().
This commit is contained in:
parent
ad71293983
commit
7ae504e51f
1 changed files with 2 additions and 2 deletions
|
@ -799,7 +799,7 @@ var Item = this.Item = Base.extend({
|
|||
}
|
||||
}, new function() {
|
||||
var sets = {
|
||||
down: {}, drag: {}, up: {}
|
||||
down: {}, drag: {}, up: {}, move: {}
|
||||
};
|
||||
|
||||
function removeAll(set) {
|
||||
|
@ -838,7 +838,7 @@ var Item = this.Item = Base.extend({
|
|||
}
|
||||
}
|
||||
|
||||
return Base.each(['up', 'down', 'drag'], function(name) {
|
||||
return Base.each(['down', 'drag', 'up', 'move'], function(name) {
|
||||
this['removeOn' + Base.capitalize(name)] = function() {
|
||||
var hash = {};
|
||||
hash[name] = true;
|
||||
|
|
Loading…
Reference in a new issue