Merge branch 'master' into v1

This commit is contained in:
bordun 2020-03-18 11:18:45 +01:00
commit 2c0398e1ad
3 changed files with 9 additions and 1 deletions

View file

@ -1,5 +1,11 @@
# Changelog (v0)
## 0.49.11
- bug fixes
- regression (0.49.10) breaking icon with short names (minimum valid length set to 2 characters)
- html widget: content not initialized properly
## 0.49.10
- bug fixes

View file

@ -6,7 +6,7 @@ module.exports = {
return `<i class="fa fa-fw fa-${i}"></i>`
},
iconify:function(string){
return String(string).replace(/\^[^\s]{4,}/g,(x)=>{return module.exports.icon(x.substring(1))})
return String(string).replace(/\^[^\s]{2,}/g,(x)=>{return module.exports.icon(x.substring(1))})
},

View file

@ -45,6 +45,8 @@ class Html extends StaticProperties(Widget, {bypass: true}) {
if (!this.getProp('border')) this.container.classList.add('noborder')
this.frame = DOM.get(this.widget, '.frame')[0]
if (this.getProp('html') !== '') this.updateHtml()
}
updateHtml(){