File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 31
31
if ( this . number )
32
32
clause_num = this . number
33
33
this . update_sec_nums ( clause_num ) ;
34
+ return clause_num ;
34
35
} ,
35
36
36
37
domReady : updateTocClauses ,
Original file line number Diff line number Diff line change @@ -36,10 +36,15 @@ limitations under the License.
36
36
} ,
37
37
38
38
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);
43
48
} ,
44
49
45
50
domReady : function ( ) {
You can’t perform that action at this time.
0 commit comments