Browse Source

Merge pull request #1133 from Braincompiler/master

fix "TypeError: Cannot read property '_bound' of undefined" in angular2 environment
kamadaKawai
Jos de Jong 9 years ago
parent
commit
da261770fc
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