1234567891011121314151617181920212223242526272829 |
- import { __spreadArray } from "tslib";
- import { compareVersion } from './compareVersion';
- export function supportUndefinedProperty() {
- var support = true;
- return support;
- }
- export function platform() {
- var platform = 'unknown';
- platform = 'alipay';
- return platform;
- }
- export function resolveEventValue(value) {
- return value;
- }
- export function resolveEventValues(args1, args2) {
- var rest = [];
- for (var _i = 2; _i < arguments.length; _i++) {
- rest[_i - 2] = arguments[_i];
- }
- return __spreadArray([args1, args2], rest, true);
- }
- export function isOldSDKVersion() {
- if (platform() === 'wechat') {
- return false;
- }
- var SDKVersion = my.SDKVersion;
- var isOldVersion = compareVersion(SDKVersion, '2.0.0') < 0;
- return isOldVersion;
- }
|