Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

oh beh update the readme for node.id too >_<

  • Loading branch information...
commit 905e01aa06368ed6d845d83d44ce50cdfa8df8d2 1 parent 31a3444
James Halliday authored July 18, 2011

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  README.markdown
6  README.markdown
Source Rendered
@@ -19,10 +19,10 @@ var b = bunker('var x = 0; for (var i = 0; i < 30; i++) { x++ }');
19 19
 var counts = {};
20 20
 
21 21
 b.on('node', function (node) {
22  
-    if (!counts[node.range]) {
23  
-        counts[node.range] = { times : 0, node : node };
  22
+    if (!counts[node.id]) {
  23
+        counts[node.id] = { times : 0, node : node };
24 24
     }
25  
-    counts[node.range].times ++;
  25
+    counts[node.id].times ++;
26 26
 });
27 27
 
28 28
 b.run();

0 notes on commit 905e01a

Please sign in to comment.
Something went wrong with that request. Please try again.