Skip to content

Commit

Permalink
use Array::splice
Browse files Browse the repository at this point in the history
  • Loading branch information
dodo committed Feb 25, 2012
1 parent 906a681 commit 20ef870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/buffer-stream.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class BufferStream extends Stream
for splitter in args
i = @splitters.indexOf(splitter)
continue if i is -1
@splitters = @splitters.slice(0,i).concat(@splitters.slice(i+1))
@splitters.splice(i, 1)
break unless @splitters.length
unless @splitters.length
@enabled = off
Expand Down

0 comments on commit 20ef870

Please sign in to comment.