My (Your) Library: canCall

D

David Mark

Garrett said:
Thomas said:
On Apr 14, 6:29 pm, Thomas 'PointedEars' Lahn <[email protected]>
wrote: [...]

// Didn't want to use in operator and for in loop does not
preserve order
while (i--) {

That looks like reverse loop to populate an array followed by a call to
reverse(). He certainly goes to a lot of trouble slow things down.

You certainly go to a lot of trouble to do nothing. :)
 
D

David Mark

Thomas said:
Certainly Function.prototype.apply can do anything that
Function.prototype.call can, so the thrust of my inquiry is: Does the
absence of the former really make the entire following code
unnecessary or useless? Or did the author assume that any browser
which lacks call would also lack apply?

Yes, if call is not there, forget apply. ;)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,079
Messages
2,570,574
Members
47,205
Latest member
ElwoodDurh

Latest Threads

Top