Skip to content

Commit

Permalink
fix bug: setOptions()
Browse files Browse the repository at this point in the history
  • Loading branch information
dabeng committed Jul 12, 2017
1 parent 41b41e7 commit e43efde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dist/js/jquery.orgchart.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,14 +203,14 @@
if (opts.data) {
this.init(opts);
} else {
if (typeof opts.pan !== undefined) {
if (typeof opts.pan !== 'undefined') {
if (opts.pan) {
this.bindPan();
} else {
this.unbindPan();
}
}
if (typeof opts.zoom !== undefined) {
if (typeof opts.zoom !== 'undefined') {
if (opts.zoom) {
this.bindZoom();
} else {
Expand Down

0 comments on commit e43efde

Please sign in to comment.