We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9063565 + 293db5e commit df53c61Copy full SHA for df53c61
src/js/events.js
@@ -52,7 +52,7 @@
52
win = this.base.options.contentWindow,
53
doc = this.base.options.ownerDocument;
54
55
- if (targets !== null) {
+ if (targets) {
56
targets = MediumEditor.util.isElement(targets) || [win, doc].indexOf(targets) > -1 ? [targets] : targets;
57
58
Array.prototype.forEach.call(targets, function (target) {
0 commit comments