AnsweredAssumed Answered

dojo declare & private instance members

Question asked by brassier on Mar 3, 2014
Latest reply on Mar 3, 2014 by brassier
Hello -

In looking into dojo modules, I'm simply trying to define a private instance member, and then eventually some get/set properties around them.  This is very easy to do with traditional JS object definitions.  In my research into dojo modules (via declare), this doesn't seem to be so simple.  I've seen that they can be identified as private via the leading "_" naming convention, but this doesn't actually make them private.  I've also seen how a private object can be declared within a module.  This essentially gives a private container for other private items, which is closer but not quite a simple private member.

I wanted to know if I'm missing something, or if this is just how dojo modules work?

Thanks
-Brian

Outcomes