added support for namespaces on types
This commit is contained in:
@@ -227,7 +227,10 @@ module.exports = ()->
|
||||
throw new Error "This operation was not initialized with a custom type"
|
||||
if @custom_type.constructor is String
|
||||
# has not been initialized yet (only the name is specified)
|
||||
@custom_type = new @custom_types[@custom_type]()
|
||||
Type = @custom_types
|
||||
for t in @custom_type.split(".")
|
||||
Type = Type[t]
|
||||
@custom_type = new Type()
|
||||
@custom_type._setModel @
|
||||
@custom_type
|
||||
|
||||
|
||||
Reference in New Issue
Block a user