Releases: adammcarth/instance.js
Bug Fixes + Validate From URL
New:
Released new validation method that asynchronously validates from a URL:
url: {
value: "/api/check_username"
}
Documentation on the Wiki Validations Page has been updated 👍
Bug Fixes:
- General Syntax Improvements
- Fixed a bug that prevented callbacks from loading on blank attributes
- Corrected a lot of broken validation methods. All are now fully tested and working.
Validations and Callbacks
We now have validations! [#7]
Instance attributes can be validated with several preset validation rules built into the script, which if fail can prevent the instance from sending - or raise callback functions to handle passing and failing attributes individually.
New callback functions have been added as well, which are (in order):
before_validation
validation_failed
validation_passed
after_validation
before_send
after_send
For a full list of validation methods, visit the Instance Validations Wiki page.
Minor bug fixes and syntax improvements
The main fix of this release was an error in the .remove()
function, which wasn't removing dynamic parameters such as html input fields and elements in the document. More information can be found at #1.
Code was reformatted, and iteration sequences were re-written. Some typos and minor syntax mistakes have also been fixed.
Very First Release
The very first release of instance.js was published today. It hasn't been substantially tested yet, so proceed at your own risk. From my basic testing, however, everything seems to be working crash hot.