Fix: no need to use $$ for element existence check

This commit is contained in:
eight 2017-09-13 20:39:42 +08:00
parent 3c450e7d9d
commit 411df8b051

View File

@ -156,7 +156,7 @@ function createSourceEditor(style) {
]})
)})
]});
if (!$$('li', el).length) {
if (!$('li', el)) {
$('ul', el).appendChild($element({
tag: 'li',
className: 'applies-to-everything',