warning : wrap is deprecated in favor of jQuery.Model.model. They
provide the same functionality; however, model works better with Deferreds.
Wrap is used to create a new instance from data returned from the server.
It is very similar to doing new Model(attributes)
except that wrap will check if the data passed has an
attributes,
data, or
singularName
property. If it does, it will use that objects attributes.
Wrap is really a convience method for servers that don't return just attributes.
warning : wrap is deprecated in favor of jQuery.Model.model. They provide the same functionality; however, model works better with Deferreds.
Wrap is used to create a new instance from data returned from the server. It is very similar to doing
new Model(attributes)except that wrap will check if the data passed has anproperty. If it does, it will use that objects attributes.
Wrap is really a convience method for servers that don't return just attributes.