Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Only apply odd/even striping to real dgrid rows (avoiding preload nodes)

  • Loading branch information...
commit 58baaf24ddd2f3576e59bacafde43ab52fece036 1 parent a29299d
@kriszyp authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 List.js
View
4 List.js
@@ -408,7 +408,9 @@ function(arrayUtil, kernel, declare, listen, has, miscUtil, TouchScroll, hasClas
do{
if(next.rowIndex > -1){
// skip non-numeric, non-rows
- put(next, '.' + (rowIndex % 2 == 1 ? oddClass : evenClass) + '!' + (rowIndex % 2 == 0 ? oddClass : evenClass));
+ if((next.className + ' ').indexOf("dgrid-row ") > -1){
+ put(next, '.' + (rowIndex % 2 == 1 ? oddClass : evenClass) + '!' + (rowIndex % 2 == 0 ? oddClass : evenClass));
+ }
next.rowIndex = rowIndex++;
}
}while((next = next.nextSibling) && next.rowIndex != rowIndex);
Please sign in to comment.
Something went wrong with that request. Please try again.