opensubscriber
   Find in this group all groups
 
Unknown more information…

w : webkitsdk-dev@lists.apple.com 14 January 2006 • 7:35AM -0500

JavaScript Array
by Michael Hanna

REPLY TO AUTHOR
 
REPLY TO GROUP



In the docs I read that NSArrays are published as read-only arrays. I  
confirmed this by using this code:

var i;
for(i = 0 ; i < FooArray.length ; i++)
{
document.writeln(FooArray[i]);
}
FooArray.push('zab');


which give me a RangeError.

.push() is used extensively in the codebase. Any suggestions for a  
workaround?

Michael


--
Michael Hanna
mhanna@atim...
iChat: michaelkhanna(AIM)



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list      (Webkitsdk-dev@list...)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webkitsdk-dev/subscriber%40opensubscriber.com

This email sent to subscriber@open...

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.