From 426371add1479dc78ca7c9690767a4ee2ee66492 Mon Sep 17 00:00:00 2001 From: Ursula Sarracini Date: Mon, 21 Dec 2015 10:15:47 -0500 Subject: [PATCH] get pinned links from gPinnedLinks --- src/js/dropPreview.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/dropPreview.js b/src/js/dropPreview.js index b7cb5c1..57bb8e5 100644 --- a/src/js/dropPreview.js +++ b/src/js/dropPreview.js @@ -1,7 +1,7 @@ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ -/*globals gGrid, gDrag */ +/*globals gGrid, gDrag, gPinnedLinks */ "use strict"; (function(exports) { @@ -124,7 +124,7 @@ // We need a pinned range only when dropping on a pinned site. if (aCell.containsPinnedSite()) { - let links = gGrid._pinnedLinks; + let links = gPinnedLinks.links; // Find all previous siblings of the drop target that are pinned as well. while (range.start && links[range.start - 1]) {