View Single Post
  #4  
Old 03-06-2011, 12:51 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by MrOmega View Post
So is using 'this' just more efficient than 'name'? Or is it just a preference choice and trivial?
It's not personal preference, it's the proper way to do it. You're giving it a string when it's expecting an object.

Proof, from a wiki article written by Stefan:

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
// Retrieve the playlist via http
  
this.req requestURL("[link removed]");
  
catchevent(this.req,"onReceiveData","onData");

__________________
Reply With Quote