Skip to content

Commit 406b328

Browse files
author
Michelle Tilley
committed
Fix Safari support
Fixes #82
1 parent 941d1d7 commit 406b328

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

js/controlbox.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,9 @@ function(_yargs, d3, demos) {
370370
return this.error("'git log' can take at most one argument in this tool")
371371
}
372372
var logs = this.getRepoView().getLogEntries(args[0] || 'head')
373-
.map(l => `<span class='log-entry'>&gt; ${l}</span>`).join('')
373+
.map(function(l) {
374+
return "<span class='log-entry'>&gt; " + l + "</span>"
375+
}).join('')
374376
this.info(logs)
375377
},
376378

@@ -878,7 +880,9 @@ function(_yargs, d3, demos) {
878880
} else if (subcommand === "show") {
879881
var logs = this.getRepoView().getReflogEntries(ref)
880882
this.info(
881-
logs.map(l => `<span class='reflog-entry'>&gt; ${l}</span>`).join('')
883+
logs.map(function(l) {
884+
return "<span class='reflog-entry'>&gt; " + l + "</span>"
885+
}).join('')
882886
)
883887
} else if (subcommand === "expire" || subcommand === "delete") {
884888
this.info("Real git reflog supports the '" + subcommand +

js/historyview.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -844,6 +844,12 @@ define(['d3'], function() {
844844
return tagData;
845845
},
846846

847+
_walkCommit: function (commit) {
848+
commit.branchless = false
849+
commit.parent && this._walkCommit(this.getCommit(commit.parent))
850+
commit.parent2 && this._walkCommit(this.getCommit(commit.parent2))
851+
},
852+
847853
_markBranchlessCommits: function() {
848854
var branch, commit, parent, parent2, c, b;
849855

@@ -859,13 +865,7 @@ define(['d3'], function() {
859865
parent = this.getCommit(commit.parent);
860866
parent2 = this.getCommit(commit.parent2);
861867

862-
function walkCommit (commit) {
863-
commit.branchless = false
864-
commit.parent && walkCommit.call(this, this.getCommit(commit.parent))
865-
commit.parent2 && walkCommit.call(this, this.getCommit(commit.parent2))
866-
}
867-
868-
walkCommit.call(this, commit)
868+
this._walkCommit(commit)
869869
}
870870
}
871871

0 commit comments

Comments
 (0)