[Representation] Spec for DropGesture

Add spec for the drop gesture, as attached to a
representation of a domain object. WTD-521.
This commit is contained in:
Victor Woeltjen
2014-11-22 10:52:02 -08:00
parent 929e501408
commit 066accc0f2
2 changed files with 106 additions and 3 deletions

View File

@@ -17,12 +17,11 @@ define(
function doPersist() {
var persistence = domainObject.getCapability("persistence");
return $q.when(persistence && peristence.persist());
return $q.when(persistence && persistence.persist());
}
function dragOver(e) {
var event = (e || {}).originalEvent || e;
//event.stopPropagation();
// TODO: Vary this based on modifier keys
event.dataTransfer.dropEffect = 'move';