• property

namespace can.Construct.namespace

 

Property Type: {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.

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