Skip to content

Commit 849e806

Browse files
committed
Remove usage of DOMHelper#setMorphHTML
This is an unnecessary layer of indirection as the method on DOM helper does exactly what `Morph#setHTML` is already doing.
1 parent c841f2b commit 849e806

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/morph-range.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Morph.prototype.setContent = function Morph$setContent(content) {
4747
switch (type) {
4848
case 'string':
4949
if (this.parseTextAsHTML) {
50-
return this.domHelper.setMorphHTML(this, content);
50+
return this.setHTML(content);
5151
}
5252
return this.setText(content);
5353
case 'object':

0 commit comments

Comments
 (0)