Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
kemsky committed Dec 17, 2015
1 parent 6315f29 commit c3d5ccd
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions source/com/kemsky/support/ValueIterator.as
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,14 @@ package com.kemsky.support

protected var _current:int = -1;

public function ValueIterator(array:Stream, index:uint = 0)
/**
* Constructor.
* @param stream underlying stream.
*/
public function ValueIterator(stream:Stream)
{
stream = array;

_next = index >= stream.length ? -1 : index;
this.stream = stream;
_next = this.stream.length == 0 ? -1 : 0;
}

/**
Expand Down

0 comments on commit c3d5ccd

Please sign in to comment.