Search the web
Sign In
New User? Sign Up
caplet · The Caplet Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 309 - 309 of 309   Newest  |  < Newer  |  Older >  |  Oldest
Messages: Show Message Summaries   (Group by Topic) Sort by Date v  
#309 From: Tyler Close <tyler.close@...>
Date: Sun Aug 16, 2009 6:51 pm
Subject: Re: ADsafe
tjclose
Offline Offline
Send Email Send Email
 
What's the recommended idiom for iterating over the elements of an
array? I had been using:

for (var i = 0; i !== v.length; i += 1) {
     var element = v[+i];
     ...
}

Are you expecting array iteration to be done as:

for (var i = 0; i !== v.length; i += 1) {
     var element = ADSAFE.get(v, i);
     ...
}

This is a little cumbersome.

I'm looking for something that will work reliably across browsers,
including IE6.

Could JSLint be made smart enough to realize that the variable "i" in
the above loop is always a positive number?

--Tyler

On Fri, Jul 31, 2009 at 9:20 AM, Douglas Crockford<douglas@...> wrote:
> The ADsafe verifier now rejects programs that use the arguments pseudo array.
>
> The ADsafe verifier now rejects programs that use expressions with the
subscript operator, even when the + prefix is used. The ADSAFE.get and
ADSAFE.set methods must be used instead. The subscript operator may be used with
positive number literals and string literals that do not begin with - or _.
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>



--
"Waterken News: Capability security on the Web"
http://waterken.sourceforge.net/recent.html

Messages 309 - 309 of 309   Newest  |  < Newer  |  Older >  |  Oldest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help