vendor/assets/javascripts/bower/vue/src/directives/on.js in fluentd-ui-0.3.0 vs vendor/assets/javascripts/bower/vue/src/directives/on.js in fluentd-ui-0.3.1
- old
+ new
@@ -44,10 +44,12 @@
reset: function () {
var el = this.iframeBind
? this.el.contentWindow
: this.el
- el.removeEventListener(this.arg, this.handler)
+ if (this.handler) {
+ el.removeEventListener(this.arg, this.handler)
+ }
},
unbind: function () {
this.reset()
this.el.removeEventListener('load', this.iframeBind)
\ No newline at end of file