jQuery.Model.static.belongsTo  function     

plugin: jquery/model/associations

Use to convert values on attribute name to instances of model type.

$.Model.extend("Task",{
  init : function(){
    this.belongsTo("Person","assignedTo");
  }
},{})
$.Model.belongsTo(type, name) -> undefined
{String}

The string name of the model.

{optional:String}

The name of the property. Defaults to the shortName of the model.

{undefined}
© Jupiter IT - JavaScriptMVC Training and Support