Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
disposed() {
if (isServerSide()) {
return;
}
this._toggler.dispose();
}
};
attached() {
if (isServerSide()) {
return;
}
this.renderReadingProgress_();
}
attached() {
if (isServerSide()) {
return;
}
const selector = '.code-container .btn-copy';
if (!window.electricClipboardTooltip) {
window.electricClipboardTooltip = new Tooltip({
delay: [300, 150],
elementClasses: 'fade',
events: {
visibleChanged: function(event) {
if (event.newVal) {
this.title = 'Copy';
}
}
},
attached() {
if (isServerSide()) {
return;
}
this.time = this.calculateTimeRemaining();
}
function setBooleanAttr_(element, name, value) {
if (isServerSide()) {
return;
}
element[name] = value;
if (value) {
element.setAttribute(name, '');
} else {
element.removeAttribute(name);
}
}
attached() {
if (isServerSide()) {
return;
}
ElectricSearchBase.prototype.attached.apply(this);
const queryString = window.location.search;
const queryIndex = queryString.indexOf('q=');
if (queryIndex !== -1) {
this.query = queryString.substr(queryIndex + 2);
}
}
attached() {
if (isServerSide()) {
return;
}
this.toggler = new Toggler({
content: `.${this.listClasses}`,
header: `.${this.togglerClasses}`,
expandedClasses: 'topbar-list-expanded'
});
}
function setValueAttrAsProperty_(element, name, value) {
if (isServerSide()) {
return;
}
if (name === 'value' && element.value !== value) {
element[name] = value;
}
}
attached() {
if (isServerSide()) {
return;
}
this.chart = new ChartJS(this.refs.canvas, {
type: this.type,
data: this.data,
options: this.options,
});
}
};
Object.keys(animationEventMap).forEach(function(eventType) {
const eventName = animationEventMap[eventType];
registerCustomEvent(eventName, {
event: true,
delegate: true,
handler: function(callback, event) {
event.customType = eventName;
return callback(event);
},
originalEvent: features.checkAnimationEventName()[eventType]
});
});
}
if (!isServerSide()) {
registerEvents();
}