From 411df8b0510941f5fd1fdfbec5660ba678cf2614 Mon Sep 17 00:00:00 2001 From: eight Date: Wed, 13 Sep 2017 20:39:42 +0800 Subject: [PATCH] Fix: no need to use $$ for element existence check --- edit/source-editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edit/source-editor.js b/edit/source-editor.js index 25d81dfa..e7c02288 100644 --- a/edit/source-editor.js +++ b/edit/source-editor.js @@ -156,7 +156,7 @@ function createSourceEditor(style) { ]}) )}) ]}); - if (!$$('li', el).length) { + if (!$('li', el)) { $('ul', el).appendChild($element({ tag: 'li', className: 'applies-to-everything',