Skip to content

Commit bf6167d

Browse files
committed
(release): 2.1.1
1 parent d6b1239 commit bf6167d

18 files changed

+79
-77
lines changed

docs/changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## 2.1.1
4+
- Bug: Fix memory leak with visibility observer
5+
36
## 2.1.0
47
- Feature: Checkbox selection mode
58
- Enhancement: Selection mode auto added to host class for easier styling

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular2-data-table",
3-
"version": "2.1.0",
3+
"version": "2.1.1",
44
"description": "angular2-data-table is a Angular2 component for presenting large and complex data.",
55
"main": "release/index.js",
66
"typings": "release/index.d.ts",

release/directives/visibility.directive.d.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { EventEmitter, ElementRef, NgZone } from '@angular/core';
1+
import { EventEmitter, ElementRef, NgZone, OnInit, OnDestroy } from '@angular/core';
22
/**
33
* Visibility Observer Directive
44
*
@@ -10,9 +10,15 @@ import { EventEmitter, ElementRef, NgZone } from '@angular/core';
1010
* </div>
1111
*
1212
*/
13-
export declare class VisibilityDirective {
13+
export declare class VisibilityDirective implements OnInit, OnDestroy {
14+
private element;
15+
private zone;
1416
isVisible: boolean;
1517
visible: EventEmitter<any>;
18+
private timeout;
1619
constructor(element: ElementRef, zone: NgZone);
17-
visbilityChange(): void;
20+
ngOnInit(): void;
21+
ngOnDestroy(): void;
22+
onVisibilityChange(): void;
23+
runCheck(): void;
1824
}

release/directives/visibility.directive.js

Lines changed: 28 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

release/directives/visibility.directive.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"__symbolic":"module","version":1,"metadata":{"VisibilityDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[visibility-observer]"}]}],"members":{"isVisible":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.visible"]}]}],"visible":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone"}]}],"visbilityChange":[{"__symbolic":"method"}]}}}}
1+
{"__symbolic":"module","version":1,"metadata":{"VisibilityDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[visibility-observer]"}]}],"members":{"isVisible":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.visible"]}]}],"visible":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"onVisibilityChange":[{"__symbolic":"method"}],"runCheck":[{"__symbolic":"method"}]}}}}

release/directives/visibility.directive.ngfactory.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@ export class Wrapper_VisibilityDirective {
2323
ngOnDetach(view:import2.AppView<any>,componentView:import2.AppView<any>,el:any):void {
2424
}
2525
ngOnDestroy():void {
26+
this.context.ngOnDestroy();
2627
(this.subscription0 && this.subscription0.unsubscribe());
2728
}
2829
ngDoCheck(view:import2.AppView<any>,el:any,throwOnChange:boolean):boolean {
2930
var changed:any = this._changed;
3031
this._changed = false;
32+
if (!throwOnChange) { if ((view.numberOfChecks === 0)) { this.context.ngOnInit(); } }
3133
return changed;
3234
}
3335
checkHost(view:import2.AppView<any>,componentView:import2.AppView<any>,el:any,throwOnChange:boolean):void {

release/index.js

Lines changed: 29 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

release/index.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

release/index.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)