Compare commits

..

2 Commits

Author SHA1 Message Date
Fabian
11a3b00c12 Adding src to published files 2019-04-03 20:37:58 -04:00
Fabian
9eef107d56 Fixing memory leak with not removed events 2019-04-03 19:31:53 -04:00
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@hibas123/utils",
"version": "2.0.2",
"version": "2.0.5",
"description": "Different Utilities, that are not worth own packages",
"main": "lib/index.js",
"types": "lib/index.d.ts",
@ -19,6 +19,7 @@
"typescript": "^3.3.3333"
},
"files": [
"src/",
"lib/",
"tsconfig.json",
"readme.md"

View File

@ -69,6 +69,7 @@ export default class Observable<T = any> {
this.subscriberCollect.forEach(cb => {
cb(this.events)
});
this.events = [];
this.timeout = undefined;
}, this.collect_intervall);
}