Make ListView.enumerate method clear ListItemView.$icon when item is not 'number'.

This commit is contained in:
Inez Korczynski 2011-12-07 01:12:04 +00:00
parent 45634a8208
commit 0ec2775621
2 changed files with 3 additions and 5 deletions

View file

@ -47,10 +47,6 @@ es.ListItemView.prototype.setClasses = function() {
}
};
es.ListItemView.prototype.setNumber = function( number ) {
this.$icon.text( number + '.' );
};
/* Registration */
es.DocumentView.splitRules.listItem = {

View file

@ -37,7 +37,9 @@ es.ListView.prototype.enumerate = function() {
if ( !levels[styles.length - 1] ) {
levels[styles.length - 1] = 0;
}
this.children[i].setNumber( ++levels[styles.length - 1] );
this.children[i].$icon.text( number + '.' );
} else {
this.children[i].$icon.text( '' );
}
}
};