atom-web-ui
Advanced tools
Comparing version
@@ -8,2 +8,4 @@ export declare class AtomTextEditorModel { | ||
constructor(owner: HTMLDivElement); | ||
onDidChange(handler: (event: any) => any): any; | ||
destroy(): void; | ||
setSoftWrapped(arg: boolean): void; | ||
@@ -10,0 +12,0 @@ setPlaceholderText(text: string): void; |
@@ -14,2 +14,8 @@ "use strict"; | ||
} | ||
AtomTextEditorModel.prototype.onDidChange = function (handler) { | ||
return this.emitter.handlersByEventName['did-change'].push(handler); | ||
}; | ||
AtomTextEditorModel.prototype.destroy = function () { | ||
this.emitter.handlersByEventName = {}; | ||
}; | ||
AtomTextEditorModel.prototype.setSoftWrapped = function (arg) { | ||
@@ -16,0 +22,0 @@ }; |
@@ -159,1 +159,2 @@ export declare class Workspace { | ||
export declare function getWorkspace(): Workspace; | ||
export declare var textEditors: any; |
@@ -765,3 +765,10 @@ "use strict"; | ||
exports.getWorkspace = getWorkspace; | ||
exports.textEditors = { | ||
build: function (options) { | ||
return { | ||
element: document.createElement("atom-text-editor") | ||
}; | ||
} | ||
}; | ||
window.remote = { require: function () { return new Object(); } }; | ||
//# sourceMappingURL=atomWrapperWeb.js.map |
{ | ||
"name": "atom-web-ui", | ||
"version": "0.0.21", | ||
"version": "0.0.23", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "description": "Atom UI port for web", |
@@ -25,2 +25,10 @@ export class AtomTextEditorModel { | ||
} | ||
onDidChange(handler: (event: any) => any): any { | ||
return this.emitter.handlersByEventName['did-change'].push(handler); | ||
} | ||
destroy() { | ||
this.emitter.handlersByEventName = {}; | ||
} | ||
@@ -27,0 +35,0 @@ setSoftWrapped(arg: boolean) { |
@@ -733,2 +733,4 @@ import atomStuff = require('./atomWebStuff'); | ||
} | ||
constructor(editorPath: string, id: string = 'ace_editor', resolver?: any, private getSuggestions?: any) { | ||
@@ -1115,3 +1117,11 @@ this.editorPath = editorPath; | ||
export var textEditors: any = { | ||
build: function(options: any) { | ||
return { | ||
element: (<any>document).createElement("atom-text-editor") | ||
}; | ||
} | ||
}; | ||
(<any>window).remote = {require: () => new Object()}; | ||
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1295841
0.1%34491
0.08%