* Destroys directive
()
| 49 | * Destroys directive |
| 50 | */ |
| 51 | destroy() { |
| 52 | var index = this.uploader._directives[this.prop].indexOf(this); |
| 53 | this.uploader._directives[this.prop].splice(index, 1); |
| 54 | this.unbind(); |
| 55 | // this.element = null; |
| 56 | } |
| 57 | /** |
| 58 | * Saves links to functions |
| 59 | * @private |