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)
|
if (this.onSearch)
|
||||||
this.onSearch();
|
this.onSearch();
|
||||||
|
|
||||||
angular.element(this.child).scope().$destroy();
|
if (angular.element(this.child)) {
|
||||||
angular.element(this.child).remove();
|
if (angular.element(this.child).scope())
|
||||||
|
angular.element(this.child).scope().$destroy();
|
||||||
|
angular.element(this.child).remove();
|
||||||
|
}
|
||||||
delete this.child;
|
delete this.child;
|
||||||
}
|
}
|
||||||
$onDestroy() {
|
$onDestroy() {
|
||||||
|
|
Loading…
Reference in New Issue