Skip to content
This repository has been archived by the owner on Apr 1, 2019. It is now read-only.

Commit

Permalink
get pinned links from gPinnedLinks
Browse files Browse the repository at this point in the history
  • Loading branch information
sarracini committed Dec 21, 2015
1 parent f53fae9 commit 426371a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/dropPreview.js
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down Expand Up @@ -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]) {
Expand Down

0 comments on commit 426371a

Please sign in to comment.