added support for namespaces on types

This commit is contained in:
DadaMonad
2015-03-09 17:38:26 +00:00
parent 148e46f043
commit 446560d9e8
14 changed files with 546 additions and 356 deletions

View File

@@ -133,7 +133,7 @@ module.exports =
_hb = []
for o in hb
_hb.push o
if _hb.length > 30
if _hb.length > 10
@broadcast
sync_step: "applyHB_"
data: _hb
@@ -158,7 +158,7 @@ module.exports =
_hb = []
for o in hb
_hb.push o
if _hb.length > 30
if _hb.length > 10
@broadcast
sync_step: "applyHB_"
data: _hb
@@ -207,7 +207,7 @@ module.exports =
for o in hb
_hb.push o
if _hb.length > 30
if _hb.length > 10
sendApplyHB
sync_step: "applyHB_"
data: _hb

View File

@@ -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