acvwilson / dirty_form

A jQuery plugin for alerting users to unsaved changes to forms before they leave a page or tab...
GNU General Public License v2.0
73 stars 7 forks source link

typo in example doc? #6

Closed alareau closed 13 years ago

alareau commented 13 years ago

on the jquery site and this one, you have the following documentation.

All forms in the page will be observed Whenever an input value changes it will get the 'forever_changes' class added to it

$(function(){ $("form").dirty_form({changeClass: "forever_changes"}); });

should it not be changedClass instead of changeClass

or the code could be changed

from DirtyForm: { debug : false, // print out debug info? works best with firebug. changedClass : 'changed',

to

DirtyForm: {
  debug         : false, // print out debug info? works best with firebug.
  changeClass  : 'changed',
acvwilson commented 13 years ago

Nice catch. I'll update the documentation. Sorry for the confusion.