namespace

  • property
can.Construct.namespace

{String}

 

The namespace property returns the namespace your constructor is in. This provides a way organize code and ensure globally unique types. The namespace is the fullName you passed without the shortName.

String

can.Construct("MyApplication.MyConstructor",{},{});
MyApplication.MyConstructor.namespace // "MyApplication"
MyApplication.MyConstructor.shortName // "MyConstructor"
MyApplication.MyConstructor.fullName  // "MyApplication.MyConstructor"