mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-10 22:54:24 +02:00
no more ids on levels, its generated automatically, and index utilization
This commit is contained in:
parent
a1a6820d77
commit
d406317788
10 changed files with 59 additions and 66 deletions
|
@ -161,14 +161,7 @@ var LevelDropdownView = ContainedBase.extend({
|
|||
},
|
||||
|
||||
getIndexForID: function(id) {
|
||||
var index;
|
||||
var levels = this.sequenceToLevels[this.selectedSequence];
|
||||
_.each(levels, function(level, _index) {
|
||||
if (level.id == id) {
|
||||
index = _index;
|
||||
}
|
||||
});
|
||||
return index;
|
||||
return Main.getLevelArbiter().getLevel(id).index;
|
||||
},
|
||||
|
||||
selectFirst: function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue