Commit ff5fcfdb authored by Sergey Antonovich's avatar Sergey Antonovich 🇯🇵

Update jSynergy.js

parent 83c634ac
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
* Docs: `http://gitlab.lan.arta.kz/community/synergy-components/blob/master/interpreter/jSynergyDocs.md` * Docs: `http://gitlab.lan.arta.kz/community/synergy-components/blob/master/interpreter/jSynergyDocs.md`
* *
* Belongs to `TOO Arta Software` * Belongs to `TOO Arta Software`
* Last modified: 10.07.2024 * Last modified: 12.07.2024
* Contributes users: none * Contributes users: none
* Version: 1.0.10 * Version: 1.0.11
* *
* By yandexphp * By yandexphp
*/ */
...@@ -623,7 +623,7 @@ function __classSynergy() { ...@@ -623,7 +623,7 @@ function __classSynergy() {
if ( if (
isCompToTable && !__CLIENT__.isExistsComp(args.c, args.ot, args.b) || isCompToTable && !__CLIENT__.isExistsComp(args.c, args.ot, args.b) ||
!__CLIENT__.isExistsComp(args.c) !isCompToTable && !__CLIENT__.isExistsComp(args.c)
) { ) {
return null; return null;
} }
...@@ -711,7 +711,7 @@ function __classSynergy() { ...@@ -711,7 +711,7 @@ function __classSynergy() {
if ( if (
isCompToTable && !__CLIENT__.isExistsComp(args.c, args.vt, args.ob) || isCompToTable && !__CLIENT__.isExistsComp(args.c, args.vt, args.ob) ||
!__CLIENT__.isExistsComp(args.c) !isCompToTable && !__CLIENT__.isExistsComp(args.c)
) { ) {
return __CLIENT__; return __CLIENT__;
} }
...@@ -1518,9 +1518,9 @@ function __classSynergy() { ...@@ -1518,9 +1518,9 @@ function __classSynergy() {
this.about = { this.about = {
name: 'jSynergy', name: 'jSynergy',
type: 'Library', type: 'Library',
version: '1.0.10 Release', version: '1.0.11 Release',
created: '17.10.2018', created: '17.10.2018',
update: '10.07.2024', update: '12.07.2024',
company: 'Arta Software', company: 'Arta Software',
platform_versions: { platform_versions: {
'3.12': '[Not support]', '3.12': '[Not support]',
...@@ -1675,6 +1675,52 @@ function __classSynergy() { ...@@ -1675,6 +1675,52 @@ function __classSynergy() {
}); });
} }
if (!Array.prototype.findIndex) {
Array.prototype.findIndex = function(callback, thisArg) {
if (this == null) {
throw new TypeError('Array.prototype.findIndex called on null or undefined')
}
if (typeof callback !== 'function') {
throw new TypeError('callback must be a function')
}
const array = Object(this)
const length = array.length >>> 0
for (let i = 0; i < length; i++) {
if (callback.call(thisArg, array[i], i, array)) {
return i
}
}
return -1
}
}
if (!Array.prototype.findLastIndex) {
Array.prototype.findLastIndex = function(callback, thisArg) {
if (this == null) {
throw new TypeError('Array.prototype.findLastIndex called on null or undefined')
}
if (typeof callback !== 'function') {
throw new TypeError('callback must be a function')
}
const array = Object(this)
const length = array.length >>> 0
for (let i = length - 1; i >= 0; i--) {
if (callback.call(thisArg, array[i], i, array)) {
return i
}
}
return -1
}
}
if (!Date.prototype.getListWeekDays) { if (!Date.prototype.getListWeekDays) {
Object.defineProperty(Date.prototype, 'getListWeekDays', { Object.defineProperty(Date.prototype, 'getListWeekDays', {
value: function () { value: function () {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment