HighDots Forums  

Re: is 'this' always defined for functions?

Javascript JavaScript language (comp.lang.javascript)


Discuss Re: is 'this' always defined for functions? in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Joost Diepenmaat
 
Posts: n/a

Default Re: is 'this' always defined for functions? - 08-26-2008 , 05:20 PM






Joost Diepenmaat <joost (AT) zeekat (DOT) nl> writes:

Quote:
var zee = {};

foo.bla.call(z) // act on the zee object
that should have been

foo.bla.call(zee) // act on the zee object

--
Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/


Reply With Quote
  #2  
Old   
yawnmoth
 
Posts: n/a

Default Re: is 'this' always defined for functions? - 08-26-2008 , 05:52 PM






On Aug 26, 4:20*pm, Joost Diepenmaat <jo... (AT) zeekat (DOT) nl> wrote:
Quote:
Joost Diepenmaat <jo... (AT) zeekat (DOT) nl> writes:
var zee = {};

foo.bla.call(z) // act on the zee object

that should have been

foo.bla.call(zee) // act on the zee object
Thanks - I appreciate it!


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.