mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-865] codelyzer diagrams and analytics (#2072)
* fix codelyzer diagrams and analytics * fix test
This commit is contained in:
committed by
Eugenio Romano
parent
3b3adbb8ba
commit
26841a782d
@@ -15,12 +15,12 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Injectable , OnDestroy} from '@angular/core';
|
||||
|
||||
declare let Raphael: any;
|
||||
|
||||
@Injectable()
|
||||
export class RaphaelService {
|
||||
export class RaphaelService implements OnDestroy {
|
||||
|
||||
paper: any;
|
||||
width: number = 300;
|
||||
@@ -53,7 +53,7 @@ export class RaphaelService {
|
||||
return paper;
|
||||
}
|
||||
|
||||
private ngOnDestroy(): any {
|
||||
public ngOnDestroy(): any {
|
||||
if (this.paper) {
|
||||
this.paper.clear();
|
||||
this.paper = void 0;
|
||||
|
Reference in New Issue
Block a user