Tue 5 Jul, 2011 03:32 am - inialising the object or 'new'ing it up executes the constructor. 'getMyOtherStuff ' was not declared in the constructor and so is not considered part of the instance of the... (view)
Tue 5 Jul, 2011 02:39 am - This is the example I wanted to post rather:
var Person = function () {
this.ctx = 'this is some other stuff'; // Public ;
var stuff = 'this is some stuff'; //... (view)
Tue 5 Jul, 2011 02:37 am - Hi,
Can anyone explain why this is?
functions can be declared in the constructor or in the prototype or on the object after the object has been initialised.
functions can not be declared... (view)