From 849e806c6ac58cdc29e13d33a98d428c698c76c9 Mon Sep 17 00:00:00 2001 From: Godfrey Chan Date: Tue, 6 Oct 2015 01:10:39 -0700 Subject: [PATCH] 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. --- lib/morph-range.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/morph-range.js b/lib/morph-range.js index fe6442f..506e2f1 100644 --- a/lib/morph-range.js +++ b/lib/morph-range.js @@ -47,7 +47,7 @@ Morph.prototype.setContent = function Morph$setContent(content) { switch (type) { case 'string': if (this.parseTextAsHTML) { - return this.domHelper.setMorphHTML(this, content); + return this.setHTML(content); } return this.setText(content); case 'object':