mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-28 00:40:07 +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) {
|
||||
return id;
|
||||
});
|
||||
var branchList = Object.keys(branchMap);
|
||||
|
||||
chain = chain.then(function() {
|
||||
// now we just moved a bunch of commits, but we haven't updated the
|
||||
|
|
|
@ -83,7 +83,7 @@ var Command = Backbone.Model.extend({
|
|||
}, this);
|
||||
var newMap = {};
|
||||
_.each(options, function(args, key) {
|
||||
newMap[key] = _.map(args, function(arg) {
|
||||
newMap[key] = Object.values(args).map(function (arg) {
|
||||
return this.replaceDotWithHead(arg);
|
||||
}, this);
|
||||
}, this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue