- add new utilities functions (extend / promote)

- add missing properties to some classes for easel 0.8
This commit is contained in:
Pedro Ferreira
2014-12-13 03:34:01 +00:00
parent e003f56619
commit 17d36657b8
2 changed files with 58 additions and 16 deletions
+3
View File
@@ -56,6 +56,7 @@ declare module createjs {
clone(): Event;
preventDefault(): void;
remove(): void;
set(props: Object): Event;
stopImmediatePropagation(): void;
stopPropagation(): void;
toString(): string;
@@ -93,7 +94,9 @@ declare module createjs {
willTrigger(type: string): boolean;
}
export function extend(subclass: () => any, superclass: () => any): () => any; // returns the subclass prototype
export function indexOf(array: any[], searchElement: Object): number;
export function promote(subclass: () => any, prefix: string): () => any;
export function proxy(method: (eventObj: Object) => boolean, scope: Object, ...arg: any[]): (eventObj: Object) => any;
export function proxy(method: (eventObj: Object) => void, scope: Object, ...arg: any[]): (eventObj: Object) => any;