On Wed, 2014-02-26 at 18:55 +0000, Sara Hopkins wrote:
> On 26/02/2014 18:14, Jon Warbrick wrote:
>
>
> > (or perhaps >= 1 if there might be more than one value. And I'm slightly
> > puzzled because as far as I can see that should be
> >
> > if (extensionAttribute1.getValues().length == 1) {
> >
> > because I think length is a property of an array, not a method [1]...
>
> It's a function, it seems. If I use .length() it works (ie. returns the
> length of the string that is my attribute value). If I use .length then
> it returns this:
>
Which confuses me even more because I get the opposite! See my previous
reply - using 'length()' gives an error, but 'length' *seems* to work
although it returns undefined.
John.
--
----------------------------------------------------
John Horne Tel: +44 (0)1752 587287
Plymouth University, UK Fax: +44 (0)1752 587001
|