Skip to content

Commit 0119824

Browse files
committed
Check if element exists
1 parent ff4a3e2 commit 0119824

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/angular-froala.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@
150150
};
151151

152152
ctrl.updateModelView = function() {
153+
if (!element) {
154+
return;
155+
}
153156

154157
var modelContent = null;
155158

@@ -225,4 +228,4 @@
225228
}
226229
};
227230
}]);
228-
})(window, window.angular, window.jQuery);
231+
})(window, window.angular, window.jQuery);

0 commit comments

Comments
 (0)