Closed martin-pabst closed 6 years ago
I also ran into this issue and implemented a similar fix. Except mine assigns the source's ID in either case. It only appends to the ID if an appendID is present.
this.$element.attr('id', typeof this.options.appendId !== "undefined" ? this.$source.attr('id') + this.options.appendId : this.$source.attr('id'));
Related to #213
Closing in favor of #213
this.options.appendId !== "undefined" always returns true. We want to test if option appendId is set, so better replace it with typeof this.options.appendId !== "undefined"