add destroy method for inputs
This commit is contained in:
@ -448,6 +448,8 @@ Makes editable any HTML element on the page. Applied as jQuery method.
|
||||
if(this.container) {
|
||||
this.container.destroy();
|
||||
}
|
||||
|
||||
this.input.destroy();
|
||||
|
||||
if(this.options.toggle !== 'manual') {
|
||||
this.$element.removeClass('editable-click');
|
||||
|
@ -152,6 +152,12 @@ To create your own input you can inherit from this class.
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
Additional actions when destroying element
|
||||
**/
|
||||
destroy: function() {
|
||||
},
|
||||
|
||||
// -------- helper functions --------
|
||||
setClass: function() {
|
||||
if(this.options.inputclass) {
|
||||
|
Reference in New Issue
Block a user