Fix async is not a method

This commit is contained in:
Paulus Schoutsen 2017-10-29 22:15:37 -07:00
parent fb0b1286d2
commit 33eb4172b3
3 changed files with 4 additions and 6 deletions

View File

@ -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}}();
/* 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
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
@ -80,5 +80,5 @@ return r=r.replace(t,function(r){var t=h[f]?"":r
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
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>

View File

@ -87,7 +87,7 @@ class HaColorPicker extends window.hassMixins.EventsMixin(Polymer.Element) {
}
this.mouseMoveIsThrottled = false;
this.processColorSelect(ev);
this.async(function () { this.mouseMoveIsThrottled = true; }.bind(this), 100);
setTimeout(() => { this.mouseMoveIsThrottled = true; }, 100);
}
processColorSelect(ev) {

View File

@ -379,9 +379,7 @@
handleVolumeWorker(service, obj, force) {
if (force || (obj !== undefined && obj.pointerDown)) {
this.callService(service);
this.async(function () {
this.handleVolumeWorker(service, obj, false);
}.bind(this), 500);
setTimeout(() => this.handleVolumeWorker(service, obj, false), 500);
}
}