![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.javascript archiveRe: "with" statement, extending prototype
From: <eman1000@gmail.com>
Date: Wed Apr 05 2006 - 16:00:19 CEST
First I want to thank you for your feedback. I am one of the waves of
RobG wrote:
<current scope object> referred to the last item added to the scope
> > Of course most of the time you can't access the top item on the scope
By "top item" I meant the last item added to the scope chain (I am
> No errors because it 'works'. The function does get added, but as a
Hmmm.... I'm not sure I understand this private vs public member stuff.
> To use 'with' and keep start() public, you can use:
I'm not sure I understand why:
with (Car) {
isn't equivilant to:
with (Car.prototype) {
Once again thanks for your feedback,
Eric
|