@@ -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();
@@ -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;