View Single Post
Old 02-25-2013, 06:05 AM   PM User | #12
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,448
Thanks: 0
Thanked 496 Times in 488 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
Quote:
Originally Posted by rnd me View Post
is there an echo in here? hehe

that's the same routine as in the OP...
Yes - except that I didn't recognise it until you pointed it out just now as you had abbreviated the portion of the code that you'd posted. Also when I replied to the first post I was more interested in the end result than I was in some of the alternatives you gave earlier. By the time I realised that your solution only works in ECMAScript 3 I had forgotten about the alternatives you'd posted.

I guess that what my search ended up finding is an echo of one of the alternatives that you posted means that alternative is probably the best that can be done with ECMAScript 5.

Now that IE9 has partly dropped support for the proprietary caller method it probably will not be long before the other browsers that support it do the same - particularly since none of them support it in ECMAScript 5.
__________________
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/
felgall is offline   Reply With Quote