diff options
| author | Ben Beltran <ben@nsovocal.com> | 2019-03-14 23:19:58 +0100 |
|---|---|---|
| committer | Ben Beltran <ben@nsovocal.com> | 2019-03-14 23:19:58 +0100 |
| commit | b009b50e81b6c1d0d691505b5f5c0418f559bfc0 (patch) | |
| tree | 5fae800e76219eba28634cb236565f9b4bb7a2f7 /atom/packages/ex-mode/node_modules/atom-space-pen-views/lib/text-editor-view.js | |
| parent | 4efcafab7f0aa454f9ebe767133654bc9f44e12c (diff) | |
Remove Atom config
Diffstat (limited to 'atom/packages/ex-mode/node_modules/atom-space-pen-views/lib/text-editor-view.js')
| -rw-r--r-- | atom/packages/ex-mode/node_modules/atom-space-pen-views/lib/text-editor-view.js | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/atom/packages/ex-mode/node_modules/atom-space-pen-views/lib/text-editor-view.js b/atom/packages/ex-mode/node_modules/atom-space-pen-views/lib/text-editor-view.js deleted file mode 100644 index 8aecdaf..0000000 --- a/atom/packages/ex-mode/node_modules/atom-space-pen-views/lib/text-editor-view.js +++ /dev/null @@ -1,67 +0,0 @@ -(function() { - var $, TextEditorView, View, _ref, - __hasProp = {}.hasOwnProperty, - __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; - - _ref = require('space-pen'), View = _ref.View, $ = _ref.$; - - module.exports = TextEditorView = (function(_super) { - __extends(TextEditorView, _super); - - function TextEditorView(params) { - var attributes, editor, mini, name, placeholderText, value; - if (params == null) { - params = {}; - } - mini = params.mini, placeholderText = params.placeholderText, attributes = params.attributes, editor = params.editor; - if (attributes == null) { - attributes = {}; - } - if (mini != null) { - attributes['mini'] = mini; - } - if (placeholderText != null) { - attributes['placeholder-text'] = placeholderText; - } - if (editor != null) { - this.element = atom.views.getView(editor); - } else { - this.element = document.createElement('atom-text-editor'); - } - for (name in attributes) { - value = attributes[name]; - this.element.setAttribute(name, value); - } - if (this.element.__spacePenView != null) { - this.element.__spacePenView = this; - this.element.__allowViewAccess = true; - } - TextEditorView.__super__.constructor.apply(this, arguments); - this.setModel(this.element.getModel()); - } - - TextEditorView.prototype.setModel = function(model) { - this.model = model; - }; - - TextEditorView.prototype.getModel = function() { - return this.model; - }; - - TextEditorView.prototype.getText = function() { - return this.model.getText(); - }; - - TextEditorView.prototype.setText = function(text) { - return this.model.setText(text); - }; - - TextEditorView.prototype.hasFocus = function() { - return this.element.hasFocus(); - }; - - return TextEditorView; - - })(View); - -}).call(this); |