Skip to content

Commit

Permalink
Bug Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
taufik-nurrohman committed May 19, 2024
1 parent cf5b538 commit cb5b533
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 9 deletions.
4 changes: 3 additions & 1 deletion .factory/index.js.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,12 @@ $$.$ = function () {

$$.attach = function (self, state) {
let $ = this;
self = self || $.self;
state = state || $.state;
$._active = true;
$._value = theValue(self);
$.self = self;
isSet(state) && ($.state = state);
$.state = state;
// Attach event(s)
for (let event in events) {
onEvent(event, self, theEvent);
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<meta content="#000" name="theme-color">
<meta content="width=device-width" name="viewport">
<meta content="A text selection range API written in pure JavaScript, for modern browsers." name="description">
<title>Text Editor 4.1.2</title>
<title>Text Editor 4.1.3</title>
<link href="../layout/index.min.css" rel="stylesheet">
</head>
<body>
<p role="alert">Do you like this project? Please support my <a href="https://github.com/mecha-cms">Mecha CMS</a> project too. Thank you!</p>
<header>
<h1>Text Editor 4.1.2</h1>
<h1>Text Editor 4.1.3</h1>
<p>Text Editor is a simple JavaScript application that aims to provide accessibility enhancements to the native HTML <code>&lt;textarea&gt;</code> elements, allowing users to control and manipulate their data in the text editor as they wish. It contains very sufficient methods to manipulate the existing text selection range data without providing unnecessary features. This keeps the file size small and the learning curve low, so you can fully focus on the results.</p>
<hr>
</header>
Expand Down
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@
return current;
};
};
TextEditor.version = '4.1.2';
TextEditor.version = '4.1.3';
TextEditor.x = x;
Object.defineProperty(TextEditor, 'name', {
value: 'TextEditor'
Expand All @@ -278,10 +278,12 @@
};
$$.attach = function (self, state) {
var $ = this;
self = self || $.self;
state = state || $.state;
$._active = true;
$._value = theValue(self);
$.self = self;
isSet(state) && ($.state = state);
$.state = state;
// Attach event(s)
for (var event in events) {
onEvent(event, self, theEvent);
Expand Down
2 changes: 1 addition & 1 deletion index.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ TextEditor.S = function (start, end, value) {
$.toString = () => current;
};

TextEditor.version = '4.1.2';
TextEditor.version = '4.1.3';

TextEditor.x = x;

Expand Down Expand Up @@ -115,10 +115,12 @@ $$.$ = function () {

$$.attach = function (self, state) {
let $ = this;
self = self || $.self;
state = state || $.state;
$._active = true;
$._value = theValue(self);
$.self = self;
isSet(state) && ($.state = state);
$.state = state;
// Attach event(s)
for (let event in events) {
onEvent(event, self, theEvent);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@
"scripts": {
"pack": "pack --clean=false --from=.factory --js-format=umd --js-name=TextEditor --js-top='%(js.license)' --mjs=true --to=."
},
"version": "4.1.2"
"version": "4.1.3"
}

0 comments on commit cb5b533

Please sign in to comment.