});
http://api.dojotoolkit.org/jsdoc/1.2/dojo.forEach
On 9/28/2010 11:31 AM, Cox-UI-Manager wrote:
> I have some Omniture mojo code and am trying to convert a piece of
> mootools script into either dojo or mojo (if it exists). I am having
> trouble finding the equivalent of the Mootools $each function. Does
> anyone know?
>
> Sample code:
>
> $each(options, function(value, index) {
> switch(index) {
> /* English => Omniture mapping */
> case 'localePagename': // localName : pageName
> ...
> break;
> case 'pageName':
> ...
> break;
> }
> }
>
> Thanks!
dojo.forEach(options, function(value,index,arr){
console.log(value,index,arr);
});
Please send back what you get in your console using this. Tried that but that dojo code is the equivalent of doing mootools options.each(value,index) which is different. -----Original Message----- From: blast...@googlegroups.com [mailto:blast...@googlegroups.com] On Behalf Of Kyle Campbell Sent: Tuesday, September 28, 2010 2:34 PM To: blast...@googlegroups.com
-----Original Message-----
From: blast...@googlegroups.com [mailto:blast...@googlegroups.com] On Behalf Of Kyle Campbell
Sent: Tuesday, September 28, 2010 2:34 PM
To: blast...@googlegroups.com
Cc: Sekman, Robert (CCI-Atlanta)
Subject: Re: Mootools to Dojo/Mojo conversion