diff --git a/README.md b/README.md index 241ddaf..ea90296 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -Code Dojo 3 +Code Dojo 4 =========== This is my worked examples from the 4th meeting of the London Code Dojo. Feel free to play around with them. You can run the code (assuming you have node and coffeescript installed) with: diff --git a/loc.coffee b/loc.coffee index a371a13..e0fc016 100644 --- a/loc.coffee +++ b/loc.coffee @@ -57,7 +57,7 @@ class Line true hasCode: => - if (@isBlank() or @isAllOneLineComment() or @isAllOneLineBlockComment()) + if (@isBlank() or @isAllOneLineComment() or @isAllOneLineBlockComment()) # needed this last to catch the false, false 'transition' 0 else 1 @@ -91,7 +91,6 @@ class Source linesOfCode: -> lineCounter = 0 inBlockComment = false - newInBlockComment = false for sourceLine in @array line = new Line sourceLine