Browse Source

fix "TypeError: Cannot read property '_bound' of undefined" in angular2 environment

kamadaKawai
Christian Seifert 9 years ago
parent
commit
91633220f8
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      lib/timeline/Core.js

+ 5
- 3
lib/timeline/Core.js View File

@ -265,7 +265,7 @@ Core.prototype.setOptions = function (options) {
onRender: options.drawPoints
};
}
if ('hiddenDates' in this.options) {
DateUtil.convertHiddenOptions(this.options.moment, this.body, this.options.hiddenDates);
}
@ -900,8 +900,10 @@ Core.prototype._stopAutoResize = function () {
}
// remove event listener on window.resize
util.removeEventListener(window, 'resize', this._onResize);
this._onResize = null;
if (this._onResize) {
util.removeEventListener(window, 'resize', this._onResize);
this._onResize = null;
}
};
/**

Loading…
Cancel
Save