Skip to content

Commit e43efde

Browse files
committed
fix bug: setOptions()
1 parent 41b41e7 commit e43efde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dist/js/jquery.orgchart.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -203,14 +203,14 @@
203203
if (opts.data) {
204204
this.init(opts);
205205
} else {
206-
if (typeof opts.pan !== undefined) {
206+
if (typeof opts.pan !== 'undefined') {
207207
if (opts.pan) {
208208
this.bindPan();
209209
} else {
210210
this.unbindPan();
211211
}
212212
}
213-
if (typeof opts.zoom !== undefined) {
213+
if (typeof opts.zoom !== 'undefined') {
214214
if (opts.zoom) {
215215
this.bindZoom();
216216
} else {

0 commit comments

Comments
 (0)