no more ids on levels, its generated automatically, and index utilization

This commit is contained in:
Peter Cottle 2013-01-09 12:49:40 -08:00
parent a1a6820d77
commit d406317788
10 changed files with 59 additions and 66 deletions

View file

@ -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() {