/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ "use strict"; /* global Cr MozElements MozXULElement PluralForm Services */ // Wrap in a block to prevent leaking to window scope. { var { cal } = ChromeUtils.import("resource:///modules/calendar/calUtils.jsm"); /** * Represents an alarm in the alarms dialog. It appears there when an alarm is fired, and * allows the alarm to be snoozed, dismissed, etc. * * @augments MozElements.MozRichlistitem */ class MozCalendarAlarmWidgetRichlistitem extends MozElements.MozRichlistitem { connectedCallback() { if (this.delayConnectedCallback() || this.hasConnected) { return; } this.hasConnected = true; this.appendChild( MozXULElement.parseXULToFragment( `