simpler for-range construct to loop over selections

This commit is contained in:
Martin Angers
2014-07-29 22:55:19 -04:00
parent 41a4211e59
commit 330b1c8132
+1 -1
View File
@@ -71,7 +71,7 @@ func TestMap(t *testing.T) {
func TestForRange(t *testing.T) {
sel := Doc().Find(".pvk-content")
initLen := sel.Length()
for i, l := 0, sel.Length(); i < l; i++ {
for i := range sel.Nodes {
single := sel.Eq(i)
//h, err := single.Html()
//if err != nil {