Преглед изворни кода

fix(build): fixed js issue with optimized build

Torkel Ödegaard пре 9 година
родитељ
комит
f0ae6a0bb1
2 измењених фајлова са 2 додато и 11 уклоњено
  1. 0 8
      public/app/core/components/info_popover.ts
  2. 2 3
      public/app/core/components/switch.ts

+ 0 - 8
public/app/core/components/info_popover.ts

@@ -40,14 +40,6 @@ export function infoPopover() {
           }
         });
 
-      // inputElem.on('focus.popover', function() {
-      //   drop.open();
-      // });
-      //
-      // inputElem.on('blur.popover', function() {
-      //   close();
-      // });
-
         scope.$on('$destroy', function() {
           drop.destroy();
         });

+ 2 - 3
public/app/core/components/switch.ts

@@ -18,9 +18,8 @@ export class SwitchCtrl {
   checked: any;
   show: any;
 
-  constructor($element) {
-    // hack to workaround animation
-    // happening on first show
+  /** @ngInject */
+  constructor() {
     this.show = true;
   }