Naming suggestions for a function returning parent prototype
Posted
by hevalbaranov
on Stack Overflow
See other posts from Stack Overflow
or by hevalbaranov
Published on 2010-03-17T13:09:55Z
Indexed on
2010/03/17
13:21 UTC
Read the original article
Hit count: 255
JavaScript
|variable-naming
I'm having a naming trouble with a function which returns parent prototype of specified object. It's being used like this:
# Pseudo Code
MyClass
{
super(MyClass,this).constructor.call(....
The problem is that I want to use a word which is as superior as "super", but "super" is reserved even it's undefined. Now I'm using "parent", but the window object has a property named parent. I hate Javascript.
What should I name this function? Names have to start with lowercase and have to be short.
© Stack Overflow or respective owner