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

Is it necessary to use 'options' when referencing class static properties?

$
0
0
My understanding of class statics is that they are referenced with 'this.foo'. Correct me if I'm wrong! But I've also noticed that when passing options to a newly instantiated object I reference them via 'this.options.foo'. Are options not also class static properties? Should I reference privately used class statics with 'options' as well as those that come via instantiation?

Hope that makes sense.

Viewing all articles
Browse latest Browse all 3491

Trending Articles