You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are many cases, for example in the deleteRecordSet function, copied
below, there is a call to dataHasValue. This should be dataHasValue(). By not
including the parenthesis, what you are checking is that the function pointer
'dataHasValue' is not null. What you want is to call the function
'dataHasValue' and check whether its return value is true. This is done by
dataHasValue(). Please correct. On a side note, the parameter name endIndex
is terrible! What you really want is to name it count or something.
public function deleteRecordSet(startIndex:int, endIndex:int = 1):Boolean{
if ( dataHasValue && startIndex < data.length && endIndex > 0)
return data.splice(startIndex, endIndex);
else
return false;
}
Original issue reported on code.google.com by davidh.0...@gmail.com on 22 Nov 2011 at 1:53
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
davidh.0...@gmail.com
on 22 Nov 2011 at 1:53The text was updated successfully, but these errors were encountered: