|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
448 bytes
|
| Rev | Line | |
|---|
| [9af201e] | 1 | "use strict";
|
|---|
| 2 | Object.defineProperty(exports, "__esModule", { value: true });
|
|---|
| 3 | function compareIssuePositions(positionA, positionB) {
|
|---|
| 4 | if (positionA === positionB) {
|
|---|
| 5 | return 0;
|
|---|
| 6 | }
|
|---|
| 7 | if (!positionA) {
|
|---|
| 8 | return -1;
|
|---|
| 9 | }
|
|---|
| 10 | if (!positionB) {
|
|---|
| 11 | return 1;
|
|---|
| 12 | }
|
|---|
| 13 | return (Math.sign(positionA.line - positionB.line) || Math.sign(positionA.column - positionB.column));
|
|---|
| 14 | }
|
|---|
| 15 | exports.compareIssuePositions = compareIssuePositions;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.