corregido error al destruir popover en searchBar
This commit is contained in:
parent
9fa608b11f
commit
1fc059273f
|
@ -29,8 +29,11 @@ export default class Controller {
|
|||
if (this.onSearch)
|
||||
this.onSearch();
|
||||
|
||||
angular.element(this.child).scope().$destroy();
|
||||
angular.element(this.child).remove();
|
||||
if (angular.element(this.child)) {
|
||||
if (angular.element(this.child).scope())
|
||||
angular.element(this.child).scope().$destroy();
|
||||
angular.element(this.child).remove();
|
||||
}
|
||||
delete this.child;
|
||||
}
|
||||
$onDestroy() {
|
||||
|
|
Loading…
Reference in New Issue