8000 Removed console debug · ulyssear/css-in-js-in-html@0027ecf · GitHub
[go: up one dir, main page]

Skip to content

Commit 0027ecf

Browse files
committed
Removed console debug
1 parent 114aa65 commit 0027ecf

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ulyssear/css-in-js-in-html",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "",
55
"main": "index.js",
66
"scripts": {

src/index.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ function do_apply(element, selectors, classes, events, media_query) {
365365

366366
function init(document, event = undefined) {
367367
const tag_console = `init : ${event ? `(${event.type})` : ''}`;
368-
console.time(tag_console);
368+
// console.time(tag_console);
369369
// console.log(event?.type);
370370

371371
const elements = document.querySelectorAll('*:not(head, head *)[class]');
@@ -387,14 +387,13 @@ function init(document, event = undefined) {
387387
subtree: true,
388388
});
389389

390-
console.timeEnd(tag_console);
390+
// console.timeEnd(tag_console);
391391

392-
document.body.removeAttribute('aria-busy');
393-
document.body.removeAttribute('hidden');
392+
document.documentElement.removeAttribute('aria-busy');
394393
}
395394

396395
function init_observer(record) {
397-
console.time('init_observer');
396+
// console.time('init_observer');
398397
for (let i = 0; i < record.length; i++) {
399398
const { type, target, attributeName } = record[i];
400399
if (type === 'attributes 68D3 ' && attributeName === 'class') {
@@ -408,7 +407,7 @@ function init_observer(record) {
408407
}
409408
}
410409
}
411-
console.timeEnd('init_observer');
410+
// console.timeEnd('init_observer');
412411
}
413412

414413
const CSS_IN_JS_IN_HTML = {

0 commit comments

Comments
 (0)
0