You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @deprecatedPlease use `codeInput.CodeInput.escapeHtml`
721
+
* @deprecatedThis shouldn't have been accessed as part of the library's public interface (to enable more flexibility in backwards-compatible versions), but is still here just in case it was.
722
722
*/
723
723
escape_html(text){
724
724
returnthis.escapeHtml(text);
725
725
}
726
726
727
727
/**
728
-
* @deprecatedPlease use `codeInput.CodeInput.getTemplate`
728
+
* @deprecatedThis shouldn't have been accessed as part of the library's public interface (to enable more flexibility in backwards-compatible versions), but is still here just in case it was.
729
729
*/
730
730
get_template(){
731
731
returnthis.getTemplate();
732
732
}
733
+
/**
734
+
* @deprecated This shouldn't have been accessed as part of the library's public interface (to enable more flexibility in backwards-compatible versions), but is still here just in case it was.
735
+
*/
736
+
gettemplate(){
737
+
returnthis.templateObject;
738
+
}
739
+
/**
740
+
* @deprecated This shouldn't have been accessed as part of the library's public interface (to enable more flexibility in backwards-compatible versions), but is still here just in case it was.
741
+
*/
742
+
settemplate(value){
743
+
this.templateObject=value;
744
+
}
733
745
734
746
735
747
/* ------------------------------------
@@ -743,8 +755,10 @@ var codeInput = {
743
755
* find its template and set up the element.
744
756
*/
745
757
connectedCallback(){
746
-
this.template=this.getTemplate();
747
-
if(this.template!=undefined){
758
+
// Stored in templateObject because some frameworks will override
759
+
// template property with the string value of the attribute
0 commit comments