.then(others => _.concat(collaborators, others)) })
let oldWatchTagArr = _.concat([], oldWatchTag); if (oldWatchTagArr.indexOf(tagId) >= 0 && followState == '1') { throw new Error(ctx.__("validate_error_repost"));
let oldDespiseArr = _.concat([], oldDespise);
let oldPraiseArr = _.concat([], oldPraise); if (oldPraiseArr.indexOf(contentId) >= 0 && praiseState == 'in') { throw new Error(ctx.__("user_action_tips_repeat", [ctx.__('user_action_type_give_thumbs_up')]));
let oldFavoriteArr = _.concat([], oldFavorite); if (oldFavoriteArr.indexOf(contentId) >= 0 && favoriteState == 'in') { throw new Error(ctx.__("user_action_tips_repeat", [ctx.__('user_action_type_give_favorite')]));
.then(others => _.concat(commits, others)) })
$scope.mediaSelect({ limit: limit - $scope.extensions[key].length }, function (media) { $scope.extensions[key] = _.concat($scope.extensions[key], media); if (limit - $scope.extensions[key].length < 1) { $scope.disabledExtMediaAdd[key] = true; } else { $scope.disabledExtMediaAdd[key] = false; } });
handleTogglePermission(data){ let self = this; let index = _.findIndex(self.state.permissionMap, function (role) { return role.role_id == data.role; }); let currentPermissions = self.state.permissionMap[index].permission_ids; if(!data.yes){ //removing permission from state let removePermissions = _.remove(currentPermissions, function (pid) { return (pid == data.permission); }); let newPermissions = _.difference(currentPermissions, removePermissions); let newPermissionMap = self.state.permissionMap; newPermissionMap[index].permission_ids = newPermissions; self.setState({changed: true, permissionMap: newPermissionMap}); }else{ //adding permission to state let newPermissions = _.concat(currentPermissions, data.permission); let newPermissionMap = self.state.permissionMap; newPermissionMap[index].permission_ids = newPermissions; self.setState({changed: true, permissionMap: newPermissionMap}); } }
$scope.extensions[key] = _.concat($scope.extensions[key], media);
solve(digests) { const signature = _.concat( $.hexToBytes(this.privkey.signDER(digests[0])), this.sighash.toByte() ); const sigpushop = scripts.StackData.getPushOp(signature); const scriptSigbody = new ByteBuffer.fromHex($.bytesToHex(sigpushop)); return { scriptSig: new scripts.ScriptSig(scriptSigbody), witness: new transaction.Witness([]) }; }
.then(others => _.concat(collaborators, others)) })
.then(others => _.concat(commits, others)) })