Skip to content

Commit

Permalink
fix lint + small refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Apr 20, 2024
1 parent fbabaee commit 054d24c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
7 changes: 3 additions & 4 deletions js/jquery.terminal-src.js
Original file line number Diff line number Diff line change
Expand Up @@ -6846,12 +6846,11 @@
return [];
}
// -----------------------------------------------------------------
function attrs_to_string(style, attrs, vaid_attrs) {
function attrs_to_string(style, attrs, valid_attrs) {
if (attrs) {
var keys = filter_attr_names(Object.keys(attrs));
if (keys.length) {
if (valid_attrs.length) {
var style_attrs;
var result = keys.map(function(name) {
var result = valid_attrs.map(function(name) {
if (attrs[name] === null) {
return '';
}
Expand Down
11 changes: 5 additions & 6 deletions js/jquery.terminal.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
*
* broken image by Sophia Bai from the Noun Project (CC-BY)
*
* Date: Sat, 20 Apr 2024 18:36:45 +0000
* Date: Sat, 20 Apr 2024 19:14:28 +0000
*/
/* global define, Map, BigInt */
/* eslint-disable */
Expand Down Expand Up @@ -5308,7 +5308,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Sat, 20 Apr 2024 18:36:45 +0000',
date: 'Sat, 20 Apr 2024 19:14:28 +0000',
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
color_names: [
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
Expand Down Expand Up @@ -6846,12 +6846,11 @@
return [];
}
// -----------------------------------------------------------------
function attrs_to_string(style, attrs, vaid_attrs) {
function attrs_to_string(style, attrs, valid_attrs) {
if (attrs) {
var keys = filter_attr_names(Object.keys(attrs));
if (keys.length) {
if (valid_attrs.length) {
var style_attrs;
var result = keys.map(function(name) {
var result = valid_attrs.map(function(name) {
if (attrs[name] === null) {
return '';
}
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.terminal.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/jquery.terminal.min.js.map

Large diffs are not rendered by default.

0 comments on commit 054d24c

Please sign in to comment.