Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
destroy button widget fails with "this.button is undefined" error #7490
The _destroy method of a form button widget has a reference to "this.button" which is never populated:
A $(...).button("destroy") call consequently fails with an "this.button is undefined" error.
This bug was introduced by this commit and could be resolved by replacing "this.button" with "this.wrapper":
Thanks for reporting the issue. Please, always include a test page when reporting bugs. See our contributing guidelines.
I created one for this issue: http://jsbin.com/sekujuqa/2/edit
@arschmitz - Should button be replaced by wrapper?