mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
Fixed metaschemas not being found.
This commit is contained in:
parent
8f95ad2787
commit
608d114c5c
1 changed files with 4 additions and 1 deletions
|
@ -72,7 +72,10 @@ class CocoModel extends Backbone.Model
|
|||
buildAttributesWithDefaults: ->
|
||||
t0 = new Date()
|
||||
clone = $.extend true, {}, @attributes
|
||||
TreemaNode.utils.populateDefaults(clone, @schema())
|
||||
thisTV4 = tv4.freshApi()
|
||||
thisTV4.addSchema('#', @schema())
|
||||
thisTV4.addSchema('metaschema', require('schemas/metaschema'))
|
||||
TreemaNode.utils.populateDefaults(clone, @schema(), thisTV4)
|
||||
@attributesWithDefaults = clone
|
||||
console.debug "Populated defaults for #{@attributes.name or @type()} in #{new Date() - t0}ms"
|
||||
|
||||
|
|
Loading…
Reference in a new issue