Permalink
Browse files

Increment the node index before using it.

  • Loading branch information...
1 parent 8572230 commit f2eaa3ec5b26f3720ce85be22efe1bc42b84481a @tristandunn committed Oct 25, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/webkit_server.js
View
@@ -20,7 +20,7 @@ window.WebKitServer = {
elements = parent.querySelectorAll(selector);
for (var index = 0, length = elements.length; index < length; index++) {
- this.nodes[results.push(this.nextIndex++)] = elements[index];
+ this.nodes[results.push(++this.nextIndex)] = elements[index];
}
return results.join(",");

0 comments on commit f2eaa3e

Please sign in to comment.