       # TODO: this should not happen on EVERY new click.
       promise = new $.Deferred()
       ajaxRequests = []
-      model = (new @assetModel()).schema
+      log @assetModel
+      model = new @assetModel().schema
+      log 'sc'
+      log model
       selectLists = []
       for key, value of model
         selectLists.push value if value.options.length < 1 if value.type is "Select"

define ["backbone", "underscore", "toastr", "jquery", "jquery.mobile", "jsrender"], (Backbone, _, toastr, $) ->

  log = (message) ->
    console.log message



    newAsset: (modelData, href) ->
      @configSelectLists().done =>
        asset = null
        if modelData?        
          asset = new @assetModel(modelData)
        else
          asset = new @assetModel()
