Skip to content

Commit df53c61

Browse files
authored
Merge pull request #1373 from bago2k4/anchor-no-preview-fix
Do not check only for null targets or it will fail when it's undefined.
2 parents 9063565 + 293db5e commit df53c61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/events.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
win = this.base.options.contentWindow,
5353
doc = this.base.options.ownerDocument;
5454

55-
if (targets !== null) {
55+
if (targets) {
5656
targets = MediumEditor.util.isElement(targets) || [win, doc].indexOf(targets) > -1 ? [targets] : targets;
5757

5858
Array.prototype.forEach.call(targets, function (target) {

0 commit comments

Comments
 (0)