Monotone-Parent: 856583f8779d38a6978fe4db950c4067c8a38e9c

Monotone-Revision: 198c312f6f50dd9e647df21a626b63d5737a368b

Monotone-Author: crobert@inverse.ca
Monotone-Date: 2009-07-01T20:09:26
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
C Robert
2009-07-01 20:09:26 +00:00
parent 0c2a455616
commit ae87e98bf2
3 changed files with 17 additions and 1 deletions
+9
View File
@@ -12,6 +12,10 @@ if(Object.isUndefined(Effect))
var Droppables = {
drops: [],
empty: function () {
this.drops = [];
},
remove: function(element) {
this.drops = this.drops.reject(function(d) { return d.element==$(element) });
},
@@ -129,6 +133,11 @@ var Draggables = {
drags: [],
observers: [],
empty: function () {
this.drags = [];
this.observers = [];
},
register: function(draggable) {
if(this.drags.length == 0) {
this.eventMouseUp = this.endDrag.bindAsEventListener(this);