1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-09-28 03:57:47 +02:00

$$ngIsClass fix for ESR

This commit is contained in:
Kyle Spearrin 2017-11-20 11:19:43 -05:00
parent 4ceac37849
commit 89b300f268
8 changed files with 28 additions and 7 deletions

View File

@ -129,6 +129,27 @@ require('./settings/settingsPremiumController.js');
require('./settings/settingsEnvironmentController.js');
require('./tools/toolsPasswordGeneratorHistoryController.js');
// $$ngIsClass fix issue with "class constructors must be invoked with |new|" on Firefox ESR
// ref: https://github.com/angular/angular.js/issues/14240
import { ActionButtonsController } from './components/action-buttons.component';
ActionButtonsController.$$ngIsClass = true;
import { CipherItemsController } from './components/cipher-items.component';
CipherItemsController.$$ngIsClass = true;
import { IconController } from './components/icon.component';
IconController.$$ngIsClass = true;
import { PopOutController } from './components/pop-out.component';
PopOutController.$$ngIsClass = true;
import { CurrentController } from './current/current.component';
CurrentController.$$ngIsClass = true;
import { LockController } from './lock/lock.component';
LockController.$$ngIsClass = true;
import { ExportController } from './tools/export.component';
ExportController.$$ngIsClass = true;
import { PasswordGeneratorController } from './tools/password-generator.component';
PasswordGeneratorController.$$ngIsClass = true;
import { ToolsController } from './tools/tools.component';
ToolsController.$$ngIsClass = true;
// Bootstrap the angular application
angular.element(function () {
angular.bootstrap(document, ['bit']);

View File

@ -2,7 +2,7 @@ import * as template from './action-buttons.component.html';
import { UtilsService } from '../../../services/abstractions/utils.service';
class ActionButtonsController implements ng.IController {
export class ActionButtonsController implements ng.IController {
onView: Function;
cipher: any;

View File

@ -1,6 +1,6 @@
import * as template from './cipher-items.component.html';
class CipherItemsController implements ng.IController {
export class CipherItemsController implements ng.IController {
onSelected: Function;
onView: Function;

View File

@ -1,6 +1,6 @@
import * as template from './icon.component.html';
class IconController implements ng.IController {
export class IconController implements ng.IController {
cipher: any;
icon: string;
image: string;

View File

@ -2,7 +2,7 @@ import * as template from './pop-out.component.html';
import { UtilsService } from '../../../services/abstractions/utils.service';
class PopOutController implements ng.IController {
export class PopOutController implements ng.IController {
constructor(private $analytics: any, private $window: any, private utilsService: UtilsService) {
}

View File

@ -3,7 +3,7 @@ import { CipherType } from '../../../enums/cipherType.enum';
import { UtilsService } from '../../../services/abstractions/utils.service';
import * as template from './current.component.html';
class CurrentController {
export class CurrentController {
i18n: any;
pageDetails: any = [];
loaded: boolean = false;

View File

@ -4,7 +4,7 @@ import * as template from './lock.component.html';
import { CryptoService } from '../../../services/abstractions/crypto.service';
import { UtilsService } from '../../../services/abstractions/utils.service';
class LockController {
export class LockController {
i18n: any;
masterPassword: string;

View File

@ -2,7 +2,7 @@ import * as template from './tools.component.html';
import { UtilsService } from '../../../services/abstractions/utils.service';
class ToolsController {
export class ToolsController {
showExport: boolean;
i18n: any;