Merge pull request #10482 from elektromodulator/master

[Drop] Fix issue where createContext did not return constructable type
This commit is contained in:
Mine Starks
2016-08-08 08:50:21 -07:00
committed by GitHub
2 changed files with 9 additions and 2 deletions
+8
View File
@@ -36,3 +36,11 @@ var e = new Drop({
content: () => greenBox
});
var Tooltip = Drop.createContext({
classPrefix: 'tooltip'
});
var t = new Tooltip({
target: yellowBox,
content: () => greenBox
});
+1 -2
View File
@@ -27,7 +27,7 @@ declare class Drop {
public once(event: string, handler: Function, context?: any): void;
public off(event: string, handler?: Function): void;
public static createContext(options: Drop.IDropContextOptions): Drop;
public static createContext(options: Drop.IDropContextOptions): typeof Drop;
}
declare namespace Drop {
@@ -59,4 +59,3 @@ declare namespace Drop {
declare module "drop" {
export = Drop;
}