shane-tomlinson / AFrame-JS

Application Framework in Javascript - A lightweight MVC library for writing apps on the web
Other
13 stars 1 forks source link

type in a Schema field should be able to be a Model #25

Open stomlinson opened 13 years ago

stomlinson commented 13 years ago

This might be a bit tricky, in schema.js, getAppDataValue would have to be able to create the model. This would create a cyclic dependency between Schema and Model.

stomlinson commented 13 years ago

Unless... Not sure about this, in model.js->getInitialData, it uses getAppData to get the initial data. What if there, it checked out the schema and saw that the type was a model, should it convert it?