Skip to content

Commit

Permalink
fix clone function
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Jan 30, 2025
1 parent 054f6ad commit 1f126ac
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
3 changes: 3 additions & 0 deletions js/jquery.terminal-src.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,9 @@
return object;
} else {
for (var key in object) {
if (!object.hasOwnProperty(key)) {
continue;
}
if (Array.isArray(object[key])) {
tmp[key] = this.clone_array(object[key]);
} else if (typeof object[key] === 'object') {
Expand Down
7 changes: 5 additions & 2 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: Sun, 26 Jan 2025 13:39:43 +0000
* Date: Thu, 30 Jan 2025 13:12:50 +0000
*/
/* global define, Map, BigInt */
/* eslint-disable */
Expand Down Expand Up @@ -346,6 +346,9 @@
return object;
} else {
for (var key in object) {
if (!object.hasOwnProperty(key)) {
continue;
}
if (Array.isArray(object[key])) {
tmp[key] = this.clone_array(object[key]);
} else if (typeof object[key] === 'object') {
Expand Down Expand Up @@ -5436,7 +5439,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Sun, 26 Jan 2025 13:39:43 +0000',
date: 'Thu, 30 Jan 2025 13:12:50 +0000',
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
color_names: [
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
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 1f126ac

Please sign in to comment.