jQuery.fn.models  function     

Returns a list of models. If the models are of the same type, and have a jQuery.Model.List, it will return the models wrapped with the list.

$(".recipes").models() //-> [recipe, ...]
$.fn.models(type) -> Array|jQuery.Model.List
{optional:jQuery.Class}

if present only returns models of the provided type.

{Array|jQuery.Model.List}

returns an array of model instances that are represented by the contained elements.

© Jupiter IT - JavaScriptMVC Training and Support