Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : If observable = new can.Observe(foo); then Chrome shows that observable is a Constructor and can be confusing

$
0
0

The ultimate thing is, I don't think the constructor should be named "Constructor"

In JavaScript, the constructors are called Object, Person, Worker, Animal, Dog.  It is not called a Constructor or PersonConstructor.

For 

  var person = new Person();

person is an instance of the class Person.  person is a Person.

For

  var observable = new can.Observe(foo);

it doesn't have the parallelism to say:

observable is an instance of Constructor.  observable is a Constructor.

observable is a CanObject.  observable is not a Constructor.



Viewing all articles
Browse latest Browse all 3491

Latest Images

Trending Articles



Latest Images