Skip to content

Commit 882fca3

Browse files
committed
Fixed:3049
1 parent d12af1b commit 882fca3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/angular-froala.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,12 @@
146146
}
147147
}
148148

149+
if (!element) {
150+
return;
151+
}
149152
element.bind('$destroy', function() {
150-
if (element) {
151153
ctrl.froalaEditor.destroy();
152154
element = null;
153-
}
154155
});
155156
};
156157

0 commit comments

Comments
 (0)