event-emitter-lite
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -6,2 +6,3 @@ export declare enum EEventEmitterStatus { | ||
ref: string; | ||
cancel?: Function; | ||
} | ||
@@ -29,3 +30,3 @@ export interface IEventEmitterError { | ||
private getRefId(); | ||
subscribe(p_callback: (value: T) => any): EventInsc; | ||
subscribe(p_callback: (value: T) => any): IEventSubscribe; | ||
once(p_callback: (value: T) => any): IEventSubscribe; | ||
@@ -32,0 +33,0 @@ hasSubscribers(): boolean; |
@@ -86,3 +86,3 @@ define(["require", "exports"], function (require, exports) { | ||
this._events.push({ ref: ref, handler: p_callback, once: true }); | ||
return { ref: ref }; | ||
return new EventInsc(ref, this); | ||
}; | ||
@@ -89,0 +89,0 @@ EventEmitter.prototype.hasSubscribers = function () { |
@@ -6,2 +6,3 @@ export declare enum EEventEmitterStatus { | ||
ref: string; | ||
cancel?: Function; | ||
} | ||
@@ -29,3 +30,3 @@ export interface IEventEmitterError { | ||
private getRefId(); | ||
subscribe(p_callback: (value: T) => any): EventInsc; | ||
subscribe(p_callback: (value: T) => any): IEventSubscribe; | ||
once(p_callback: (value: T) => any): IEventSubscribe; | ||
@@ -32,0 +33,0 @@ hasSubscribers(): boolean; |
@@ -85,3 +85,3 @@ "use strict"; | ||
this._events.push({ ref: ref, handler: p_callback, once: true }); | ||
return { ref: ref }; | ||
return new EventInsc(ref, this); | ||
}; | ||
@@ -88,0 +88,0 @@ EventEmitter.prototype.hasSubscribers = function () { |
{ | ||
"name": "event-emitter-lite", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "simple event emitter to use with typescript and pure javascript no depences", | ||
@@ -5,0 +5,0 @@ "scripts": { |
13781
342