mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-23 20:35:24 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user