From c3d5ccd3008ff63f3e9b130d764a16b1a3c49da4 Mon Sep 17 00:00:00 2001 From: Alexander Date: Thu, 17 Dec 2015 12:03:04 +0300 Subject: [PATCH] clean up --- source/com/kemsky/support/ValueIterator.as | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/source/com/kemsky/support/ValueIterator.as b/source/com/kemsky/support/ValueIterator.as index cfa33f5..134d3ce 100644 --- a/source/com/kemsky/support/ValueIterator.as +++ b/source/com/kemsky/support/ValueIterator.as @@ -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; } /**