@@ -84,7 +84,6 @@ function zip2views( arrays, labels ) {
84
84
var M ;
85
85
var N ;
86
86
var i ;
87
- var j ;
88
87
89
88
M = arrays . length ;
90
89
if ( M < 1 ) {
@@ -97,8 +96,8 @@ function zip2views( arrays, labels ) {
97
96
}
98
97
// Resolve element accessors...
99
98
acc = [ ] ;
100
- for ( j = 0 ; j < M ; j ++ ) {
101
- acc . push ( accessors ( list [ j ] ) . accessors ) ;
99
+ for ( i = 0 ; i < M ; i ++ ) {
100
+ acc . push ( accessors ( list [ i ] ) . accessors ) ;
102
101
}
103
102
// Create a copy of provided labels to prevent external mutation:
104
103
keys = copy ( labels ) ;
@@ -118,10 +117,10 @@ function zip2views( arrays, labels ) {
118
117
}
119
118
120
119
// Define read/write accessors for each label...
121
- for ( j = 0 ; j < M ; j ++ ) {
122
- getter = getValue ( list [ j ] , acc [ j ] [ 0 ] ) ;
123
- setter = setValue ( list [ j ] , acc [ j ] [ 1 ] ) ;
124
- setReadWriteAccessor ( Datum . prototype , keys [ j ] , getter , setter ) ;
120
+ for ( i = 0 ; i < M ; i ++ ) {
121
+ getter = getValue ( list [ i ] , acc [ i ] [ 0 ] ) ;
122
+ setter = setValue ( list [ i ] , acc [ i ] [ 1 ] ) ;
123
+ setReadWriteAccessor ( Datum . prototype , keys [ i ] , getter , setter ) ;
125
124
}
126
125
// Ensure that the returned array correctly serializes to JSON:
127
126
setNonEnumerableReadOnly ( Datum . prototype , 'toJSON' , toJSON ) ;
0 commit comments