From cdfaa7b13125e5b85b5b4cba441b5f78061b3230 Mon Sep 17 00:00:00 2001 From: Evan You Date: Mon, 11 Apr 2016 00:52:29 -0400 Subject: [PATCH] no need for comment handler --- src/compiler/html-parser.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/compiler/html-parser.js b/src/compiler/html-parser.js index a7c5f1b8..5545e554 100644 --- a/src/compiler/html-parser.js +++ b/src/compiler/html-parser.js @@ -39,9 +39,6 @@ export function parse (html) { ? text : text.trim() ? text : ' ' currentParent.children.push(text) - }, - comment () { - // noop } }) return root @@ -151,9 +148,6 @@ export default function HTMLParser(html, handler) { var commentEnd = html.indexOf('-->') if (commentEnd >= 0) { - if (handler.comment) { - handler.comment(html.substring(4, commentEnd)) - } html = html.substring(commentEnd + 3) prevTag = '' continue @@ -165,9 +159,6 @@ export default function HTMLParser(html, handler) { var conditionalEnd = html.indexOf(']>') if (conditionalEnd >= 0) { - if (handler.comment) { - handler.comment(html.substring(2, conditionalEnd + 1), true /* non-standard */) - } html = html.substring(conditionalEnd + 2) prevTag = '' continue