Permalink
Browse files

!n++ always truthy and r never used

  • Loading branch information...
1 parent 9c0e77c commit dc7a3a1bb8bf9af63033d8d867d6424652590154 Lars-Magnus Skog committed Dec 13, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −0 .gitignore
  2. +1 −2 index.js
View
1 .gitignore
@@ -0,0 +1 @@
+node_modules
View
3 index.js
@@ -32,11 +32,10 @@ function from (source) {
s.paused = true
}
function next () {
- var n = 0, r = false
s.started = true
if(s.ended) return
while(!s.ended && !s.paused && source.call(s, i++, function () {
- if(!n++ && !s.ended && !s.paused)
+ if(!s.ended && !s.paused)
next()
}))
;

0 comments on commit dc7a3a1

Please sign in to comment.