Skip to content

Commit 452a6c6

Browse files
committed
Working on numbering.
1 parent 71d7418 commit 452a6c6

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

clause.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
if (this.number)
3232
clause_num = this.number
3333
this.update_sec_nums(clause_num);
34+
return clause_num;
3435
},
3536

3637
domReady: updateTocClauses,

toc.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,15 @@ limitations under the License.
3636
},
3737

3838
clausesChanged: function() {
39-
this.sections = this.clauses.array().map(function(clause, index) {
40-
clause.set_clause_num(index + 1);
41-
return this.collectSections(clause);
42-
}, this);
39+
var n = 1
40+
while (n < this.clauses.length) {
41+
n = this.clause[n].set_clause_num(n)
42+
}
43+
44+
// this.sections = this.clauses.array().map(function(clause, index) {
45+
// clause.set_clause_num(index + 1);
46+
// return this.collectSections(clause);
47+
// }, this);
4348
},
4449

4550
domReady: function() {

0 commit comments

Comments
 (0)