@taufik-nurrohman/text-editor.source 2.2.3 → 2.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +5 -5
- package/index.mjs +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
@@ -23,9 +23,9 @@
|
|
23
23
|
* SOFTWARE.
|
24
24
|
*
|
25
25
|
*/
|
26
|
-
(function(global, factory) {
|
26
|
+
(function (global, factory) {
|
27
27
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.TE = global.TE || {}, global.TE.Source = {})));
|
28
|
-
})(this, function(exports) {
|
28
|
+
})(this, function (exports) {
|
29
29
|
'use strict';
|
30
30
|
var hasValue = function hasValue(x, data) {
|
31
31
|
return -1 !== data.indexOf(x);
|
@@ -57,11 +57,11 @@
|
|
57
57
|
var W = window;
|
58
58
|
var debounce = function debounce(then, time) {
|
59
59
|
var timer;
|
60
|
-
return function() {
|
60
|
+
return function () {
|
61
61
|
var _arguments = arguments,
|
62
62
|
_this = this;
|
63
63
|
timer && clearTimeout(timer);
|
64
|
-
timer = setTimeout(function() {
|
64
|
+
timer = setTimeout(function () {
|
65
65
|
return then.apply(_this, _arguments);
|
66
66
|
}, time);
|
67
67
|
};
|
@@ -102,7 +102,7 @@
|
|
102
102
|
defaults.source[type] = (...lot) => promisify(type, lot);
|
103
103
|
});
|
104
104
|
const that = {};
|
105
|
-
that.toggle = function(open, close, wrap, tidy = false) {
|
105
|
+
that.toggle = function (open, close, wrap, tidy = false) {
|
106
106
|
if (!close && "" !== close) {
|
107
107
|
close = open;
|
108
108
|
}
|
package/index.mjs
CHANGED
package/package.json
CHANGED