mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 23:36:36 +00:00
Fix async is not a method
This commit is contained in:
parent
fb0b1286d2
commit
33eb4172b3
@ -70,7 +70,7 @@ return D=new t,W=new t,z=[],B=0,n=L.preConversion(n),n=n.replace(/~/g,"~T"),n=n.
|
|||||||
var M=function(e){return o(e)},R={ol:"\\d+[.]",ul:"[*+-]"},T=/(?:["'*()[\]:]|~D)/g}}();
|
var M=function(e){return o(e)},R={ol:"\\d+[.]",ul:"[*+-]"},T=/(?:["'*()[\]:]|~D)/g}}();
|
||||||
|
|
||||||
/* pagedown sanitizer */
|
/* pagedown sanitizer */
|
||||||
function(){function r(r){return r.replace(/<[^>]*>?/gi,t)}function t(r){return r.match(i)||r.match(s)||r.match(a)?r:""}function e(r){if(""==r)return""
|
(function(){function r(r){return r.replace(/<[^>]*>?/gi,t)}function t(r){return r.match(i)||r.match(s)||r.match(a)?r:""}function e(r){if(""==r)return""
|
||||||
var t=/<\/?\w+[^>]*(\s|$|>)/g,e=r.toLowerCase().match(t),n=(e||[]).length
|
var t=/<\/?\w+[^>]*(\s|$|>)/g,e=r.toLowerCase().match(t),n=(e||[]).length
|
||||||
if(0==n)return r
|
if(0==n)return r
|
||||||
for(var o,i,s,a="<p><img><br><li><hr>",c=[],h=[],u=!1,f=0;n>f;f++)if(o=e[f].replace(/<\/?(\w+).*/,"$1"),!(c[f]||a.search("<"+o+">")>-1)){if(i=e[f],s=-1,!/^<\//.test(i))for(var p=f+1;n>p;p++)if(!c[p]&&e[p]=="</"+o+">"){s=p
|
for(var o,i,s,a="<p><img><br><li><hr>",c=[],h=[],u=!1,f=0;n>f;f++)if(o=e[f].replace(/<\/?(\w+).*/,"$1"),!(c[f]||a.search("<"+o+">")>-1)){if(i=e[f],s=-1,!/^<\//.test(i))for(var p=f+1;n>p;p++)if(!c[p]&&e[p]=="</"+o+">"){s=p
|
||||||
@ -80,5 +80,5 @@ return r=r.replace(t,function(r){var t=h[f]?"":r
|
|||||||
return f++,t})}var n,o
|
return f++,t})}var n,o
|
||||||
"object"==typeof exports&&"function"==typeof require?(n=exports,o=require("./Markdown.Converter").Converter):(n=window.Markdown,o=n.Converter),n.getSanitizingConverter=function(){var t=new o
|
"object"==typeof exports&&"function"==typeof require?(n=exports,o=require("./Markdown.Converter").Converter):(n=window.Markdown,o=n.Converter),n.getSanitizingConverter=function(){var t=new o
|
||||||
return t.hooks.chain("postConversion",r),t.hooks.chain("postConversion",e),t}
|
return t.hooks.chain("postConversion",r),t.hooks.chain("postConversion",e),t}
|
||||||
var i=/^(<\/?(b|blockquote|code|del|dd|dl|dt|em|h1|h2|h3|i|kbd|li|ol|p|pre|s|sup|sub|strong|strike|ul)>|<(br|hr)\s?\/?>)$/i,s=/^(<a\shref="((https?|ftp):\/\/|\/)[-A-Za-z0-9+&@#\/%?=~_|!:,.;\(\)]+"(\stitle="[^"<>]+")?\s?>|<\/a>)$/i,a=/^(<img\ssrc="(https?:\/\/|\/)[-A-Za-z0-9+&@#\/%?=~_|!:,.;\(\)]+"(\swidth="\d{1,3}")?(\sheight="\d{1,3}")?(\salt="[^"<>]*")?(\stitle="[^"<>]*")?\s?\/?>)$/i}()
|
var i=/^(<\/?(b|blockquote|code|del|dd|dl|dt|em|h1|h2|h3|i|kbd|li|ol|p|pre|s|sup|sub|strong|strike|ul)>|<(br|hr)\s?\/?>)$/i,s=/^(<a\shref="((https?|ftp):\/\/|\/)[-A-Za-z0-9+&@#\/%?=~_|!:,.;\(\)]+"(\stitle="[^"<>]+")?\s?>|<\/a>)$/i,a=/^(<img\ssrc="(https?:\/\/|\/)[-A-Za-z0-9+&@#\/%?=~_|!:,.;\(\)]+"(\swidth="\d{1,3}")?(\sheight="\d{1,3}")?(\salt="[^"<>]*")?(\stitle="[^"<>]*")?\s?\/?>)$/i})()
|
||||||
</script>
|
</script>
|
||||||
|
@ -87,7 +87,7 @@ class HaColorPicker extends window.hassMixins.EventsMixin(Polymer.Element) {
|
|||||||
}
|
}
|
||||||
this.mouseMoveIsThrottled = false;
|
this.mouseMoveIsThrottled = false;
|
||||||
this.processColorSelect(ev);
|
this.processColorSelect(ev);
|
||||||
this.async(function () { this.mouseMoveIsThrottled = true; }.bind(this), 100);
|
setTimeout(() => { this.mouseMoveIsThrottled = true; }, 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
processColorSelect(ev) {
|
processColorSelect(ev) {
|
||||||
|
@ -379,9 +379,7 @@
|
|||||||
handleVolumeWorker(service, obj, force) {
|
handleVolumeWorker(service, obj, force) {
|
||||||
if (force || (obj !== undefined && obj.pointerDown)) {
|
if (force || (obj !== undefined && obj.pointerDown)) {
|
||||||
this.callService(service);
|
this.callService(service);
|
||||||
this.async(function () {
|
setTimeout(() => this.handleVolumeWorker(service, obj, false), 500);
|
||||||
this.handleVolumeWorker(service, obj, false);
|
|
||||||
}.bind(this), 500);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user