powmedia / backbone-forms

Form framework for BackboneJS with nested forms, editable lists and validation
MIT License
2.17k stars 413 forks source link

Don't overwrite step parameter in number editor #269

Closed jarek closed 11 years ago

jarek commented 11 years ago

Hi! I noticed the input type=number editor was always overwriting the step value with "any" even if another value was provided in editorAttrs. This commit makes it not overwrite a step value if provided. It includes the change to src file and tests for default ("any") step and custom step value.

It's my first pull request ever so I apologize in advance if anything is wrong. I didn't include any generated files since I wasn't sure whether you wanted them and for some reason my generated files had other changes beyond my own (I might have not had the right files from the submodule?). Hope it's serviceable!

philfreo commented 11 years ago

This looks good to me.