Skip to content

Commit

Permalink
Commenting resetFields (especially that the params default to true)
Browse files Browse the repository at this point in the history
  • Loading branch information
philfreo committed Jul 25, 2013
1 parent 593dc76 commit 6b54afd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/jquery.autosave.js
Expand Up @@ -458,6 +458,17 @@
}
},

/**
* Reset the changed/modified bit on fields.
*
* @param {Boolean} [resetChanged]
* Whether or not to reset which elements were changed before saving.
* Defaults to true.
*
* @param {Boolean} [resetModified]
* Whether or not to reset which elements were modified before saving.
* Defaults to true.
*/
resetFields: function(resetChanged, resetModified) {
// Reset changed by default
if (resetChanged !== false) {
Expand Down

0 comments on commit 6b54afd

Please sign in to comment.