bobril
Advanced tools
Comparing version 20.6.2 to 20.6.3
# CHANGELOG | ||
## 20.6.3 | ||
Do not create empty style tag when no styles are defined. | ||
## 20.6.2 | ||
Allow `#` characgter in route params. | ||
Allow `#` character in route params. | ||
@@ -283,5 +287,5 @@ ## 20.6.1 | ||
- report component lifecycle method durations into User Timing API | ||
- results are available in the performance tab of devtools (e.g. 'timings' timelane in Chrome) | ||
- have to be manually switched on in the code `b.setMeasureConfiguration()`, since the performance impact is not known | ||
- report component lifecycle method durations into User Timing API | ||
- results are available in the performance tab of devtools (e.g. 'timings' timelane in Chrome) | ||
- have to be manually switched on in the code `b.setMeasureConfiguration()`, since the performance impact is not known | ||
@@ -391,4 +395,4 @@ ## 14.10.0 | ||
- `IBobrilCacheNode` has now just read only fields as it was always intended. Events `onFocus`, `onBlur`, `onSelectionChange` bubble now. | ||
- `bubble`, `broadcast`, `captureBroadcast` now type check `EventNames` and `EventParam<TName>` | ||
- `IBobrilCacheNode` has now just read only fields as it was always intended. Events `onFocus`, `onBlur`, `onSelectionChange` bubble now. | ||
- `bubble`, `broadcast`, `captureBroadcast` now type check `EventNames` and `EventParam<TName>` | ||
@@ -395,0 +399,0 @@ Most event parameters now inherit from `IEventParam` which contains `target` of `IBobrilCacheNode` type. |
The MIT License (MIT) | ||
Copyright (c) 2015 Boris Letocha | ||
Copyright (c) 2024 Boris Letocha | ||
@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of |
{ | ||
"name": "bobril", | ||
"version": "20.6.2", | ||
"version": "20.6.3", | ||
"description": "Component Oriented MVC Framework with virtual DOM and CSS", | ||
@@ -49,2 +49,2 @@ "main": "index.js", | ||
} | ||
} | ||
} |
@@ -511,12 +511,15 @@ import { CSSStyles, CSSPseudoStyles, CSSStylesItem, CSSInlineStyles } from "./cssTypes"; | ||
} | ||
var styleElement = document.createElement("style"); | ||
styleElement.appendChild(createTextNode(styleStr)); | ||
var head = document.head || document.getElementsByTagName("head")[0]; | ||
if (htmlStyle != null) { | ||
head.replaceChild(styleElement, htmlStyle); | ||
} else { | ||
head.appendChild(styleElement); | ||
if (styleStr.length > 0) { | ||
var styleElement = document.createElement("style"); | ||
styleElement.appendChild(createTextNode(styleStr)); | ||
var head = document.head || document.getElementsByTagName("head")[0]; | ||
if (htmlStyle != null) { | ||
head.replaceChild(styleElement, htmlStyle); | ||
} else { | ||
head.appendChild(styleElement); | ||
} | ||
htmlStyle = styleElement; | ||
} | ||
htmlStyle = styleElement; | ||
} | ||
@@ -523,0 +526,0 @@ chainedAfterFrame(root); |
392649
9333