I don't think because you want to use common JavaScript commands.
There are some special functions available with some frameworks,
something like this:
ForEach(arr, function(key, item) {
alert(key + " " + item);
});
And the ForEach function will have two arguments, the array (which is
not an array), and the function that will handle the key and item. I
do not like this... :(
function ForEach(a, f) {
for(var k in a) {
if(typeof a[k] == "function") continue;
f(k, a[k]);
}
}
Regards,
Michael
On 7/20/06, ziv Rosenzweig <[EMAIL PROTECTED]> wrote:
>
>
>
> Zozi
> Using the second example you gave will cause you to get the clear and
> addRange functions.
> Michael solution does help this problem.
>
> The question is can we add something more generic.
> Can we add another property that will be activate on the for ... in
> statement that will filter the function object.
>
> >
>
>
>
>
>
--
Best regards | Schöne Grüße
Michael
Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer
http://weblogs.asp.net/mschwarz/
http://www.schwarz-interactive.de/
Skype: callto:schwarz-interactive
MSN IM: [EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ajax.NET Professional" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/ajaxpro
The latest downloads of Ajax.NET Professional can be found at
http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---