jQuery.Model.prototype.isDirty  function     

plugin: jquery/model/backup

Returns if the instance needs to be saved. This will go through associations too.

model.isDirty(checkAssociations) -> Boolean
{optional:Boolean} defaults to false

true if associations should be checked. Defaults to false. be checked, false if otherwise

{Boolean}

true if there are changes, false if otherwise

© Jupiter IT - JavaScriptMVC Training and Support