Add support for Item#removeOnMove().

This commit is contained in:
Jürg Lehni 2011-03-20 00:11:02 +00:00
parent ad71293983
commit 7ae504e51f

View file

@ -799,7 +799,7 @@ var Item = this.Item = Base.extend({
} }
}, new function() { }, new function() {
var sets = { var sets = {
down: {}, drag: {}, up: {} down: {}, drag: {}, up: {}, move: {}
}; };
function removeAll(set) { 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() { this['removeOn' + Base.capitalize(name)] = function() {
var hash = {}; var hash = {};
hash[name] = true; hash[name] = true;