mirror of
https://github.com/nasa/openmct.git
synced 2025-05-31 22:50:49 +00:00
Defer resolution of scope in DropGesture
This commit is contained in:
parent
b6502e9ea1
commit
fd9d766913
@ -40,12 +40,13 @@ define(
|
|||||||
*/
|
*/
|
||||||
function DropGesture(dndService, $q, element, domainObject) {
|
function DropGesture(dndService, $q, element, domainObject) {
|
||||||
var actionCapability = domainObject.getCapability('action'),
|
var actionCapability = domainObject.getCapability('action'),
|
||||||
scope = element.scope && element.scope(),
|
|
||||||
action; // Action for the drop, when it occurs
|
action; // Action for the drop, when it occurs
|
||||||
|
|
||||||
function broadcastDrop(id, event) {
|
function broadcastDrop(id, event) {
|
||||||
// Find the relevant scope...
|
// Find the relevant scope...
|
||||||
var rect;
|
var rect,
|
||||||
|
scope = element.scope && element.scope();
|
||||||
|
|
||||||
if (scope && scope.$broadcast) {
|
if (scope && scope.$broadcast) {
|
||||||
// Get the representation's bounds, to convert
|
// Get the representation's bounds, to convert
|
||||||
// drop position
|
// drop position
|
||||||
|
Loading…
x
Reference in New Issue
Block a user