¡@

Home 

javascript Programming Glossary: this.onion

'this' object can't be accessed in private JavaScript functions without a hack?

http://stackoverflow.com/questions/3274387/this-object-cant-be-accessed-in-private-javascript-functions-without-a-hack

the below code doesn't work as I expected function Alpha this.onion 'onion' function Beta alert this.onion Beta alpha1 new Alpha.. function Alpha this.onion 'onion' function Beta alert this.onion Beta alpha1 new Alpha Alerts 'undefined' However if I change.. if I change the code to this function Alpha var self this this.onion 'onion' function Beta alert self.onion Beta alpha1 new Alpha..