// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-<include src="extension_error_overlay.js">
-
cr.define('extensions', function() {
'use strict';
* @return {HTMLElement} The clone of the template.
*/
function cloneTemplate(templateName) {
- return $('template-collection-extension-error').
- querySelector('.' + templateName).cloneNode(true);
+ return /** @type {HTMLElement} */($('template-collection-extension-error').
+ querySelector('.' + templateName).cloneNode(true));
}
/**
ExtensionError.prototype = {
__proto__: HTMLDivElement.prototype,
- /** @override */
+ /**
+ * @param {RuntimeError} error
+ * @override
+ */
decorate: function(error) {
// Add an additional class for the severity level.
if (error.level == 0)