atom-web-ui
Advanced tools
Comparing version 0.0.11 to 0.0.12
@@ -119,3 +119,4 @@ /// <reference path="../../typings/main.d.ts" /> | ||
grammar: any; | ||
constructor(editorPath: string, id?: string); | ||
constructor(editorPath: string, id?: string, resolver?: any); | ||
restore(resolver: any): void; | ||
doAceSetup(ace: any): void; | ||
@@ -122,0 +123,0 @@ setAceEditor(aceEditor: any): void; |
@@ -483,3 +483,3 @@ "use strict"; | ||
var TextEditor = (function () { | ||
function TextEditor(editorPath, id) { | ||
function TextEditor(editorPath, id, resolver) { | ||
if (id === void 0) { id = 'ace_editor'; } | ||
@@ -498,2 +498,3 @@ this.dirtyState = false; | ||
self['soft-tabs'] = {}; | ||
this.restore(resolver); | ||
this.textElement.className = 'editor'; | ||
@@ -521,2 +522,6 @@ this.textElement.style.position = 'relative'; | ||
} | ||
TextEditor.prototype.restore = function (resolver) { | ||
var text = resolver.content(this.editorPath); | ||
this.textBuffer = new TextBuffer(text); | ||
}; | ||
TextEditor.prototype.doAceSetup = function (ace) { | ||
@@ -523,0 +528,0 @@ this.ace = ace; |
{ | ||
"name": "atom-web-ui", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -135,2 +135,2 @@ "use strict"; | ||
exports.AtomTextEditorModel = AtomTextEditorModel; | ||
//# sourceMappingURL=AtomWebStuff.js.map | ||
//# sourceMappingURL=atomWebStuff.js.map |
@@ -483,3 +483,3 @@ "use strict"; | ||
var TextEditor = (function () { | ||
function TextEditor(editorPath, id) { | ||
function TextEditor(editorPath, id, resolver) { | ||
if (id === void 0) { id = 'ace_editor'; } | ||
@@ -498,2 +498,3 @@ this.dirtyState = false; | ||
self['soft-tabs'] = {}; | ||
this.restore(resolver); | ||
this.textElement.className = 'editor'; | ||
@@ -521,2 +522,6 @@ this.textElement.style.position = 'relative'; | ||
} | ||
TextEditor.prototype.restore = function (resolver) { | ||
var text = resolver.content(this.editorPath); | ||
this.textBuffer = new TextBuffer(text); | ||
}; | ||
TextEditor.prototype.doAceSetup = function (ace) { | ||
@@ -523,0 +528,0 @@ this.ace = ace; |
@@ -729,3 +729,3 @@ /// <reference path="../../typings/main.d.ts" /> | ||
} | ||
constructor(editorPath: string, id: string = 'ace_editor') { | ||
constructor(editorPath: string, id: string = 'ace_editor', resolver?: any) { | ||
this.editorPath = editorPath; | ||
@@ -738,2 +738,4 @@ | ||
self['soft-tabs'] = {}; | ||
this.restore(resolver); | ||
@@ -774,2 +776,8 @@ this.textElement.className = 'editor'; | ||
restore(resolver: any) { | ||
var text: string = resolver.content(this.editorPath); | ||
this.textBuffer = new TextBuffer(text); | ||
} | ||
doAceSetup(ace: any) { | ||
@@ -776,0 +784,0 @@ this.ace = ace; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2322315
53089