Sigma Php Ajax framework, Ajax Components, GUI Builder
May 24, 2012, 11:13:05 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: ns=this, host=this?  (Read 224 times)
Bruce_Dickey
Sr. Member
****
Posts: 67


View Profile
« on: October 04, 2011, 03:28:21 PM »

Hi linb,

Just curious why in inComponents, you set host=this, but in event handlers you set ns=this -- why the difference? I assume ns means namespace? Why not simply use `this` in both places?

Thanks,
Bruce

Logged
linb
Administrator
Hero Member
*****
Posts: 435


View Profile
« Reply #1 on: October 04, 2011, 08:46:55 PM »

In those cases, "ns", "host" or any other variable declarations are just for keeping a certain scope "this"(javascript will change "this" in differant scope.).
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!