mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-28 08:50:06 +02:00
Use 'Object.values' and 'Object.keys' to get list 'keys' and 'values'
This commit is contained in:
parent
e17d974b55
commit
d87fd095c0
2 changed files with 2 additions and 4 deletions
|
@ -2090,9 +2090,7 @@ GitEngine.prototype.hgRebase = function(destination, base) {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
var branchList = _.map(branchMap, function(val, id) {
|
var branchList = Object.keys(branchMap);
|
||||||
return id;
|
|
||||||
});
|
|
||||||
|
|
||||||
chain = chain.then(function() {
|
chain = chain.then(function() {
|
||||||
// now we just moved a bunch of commits, but we haven't updated the
|
// now we just moved a bunch of commits, but we haven't updated the
|
||||||
|
|
|
@ -83,7 +83,7 @@ var Command = Backbone.Model.extend({
|
||||||
}, this);
|
}, this);
|
||||||
var newMap = {};
|
var newMap = {};
|
||||||
_.each(options, function(args, key) {
|
_.each(options, function(args, key) {
|
||||||
newMap[key] = _.map(args, function(arg) {
|
newMap[key] = Object.values(args).map(function (arg) {
|
||||||
return this.replaceDotWithHead(arg);
|
return this.replaceDotWithHead(arg);
|
||||||
}, this);
|
}, this);
|
||||||
}, this);
|
}, this);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue