Skip to content

Commit

Permalink
fix handling animation #611
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Jul 9, 2021
1 parent 3fda8cd commit 38b63d5
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 21 deletions.
12 changes: 6 additions & 6 deletions js/jquery.terminal-2.27.1.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: Fri, 09 Jul 2021 11:59:39 +0000
* Date: Fri, 09 Jul 2021 12:43:54 +0000
*/
/* global define, Map */
/* eslint-disable */
Expand Down Expand Up @@ -4789,7 +4789,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Fri, 09 Jul 2021 11:59:39 +0000',
date: 'Fri, 09 Jul 2021 12:43:54 +0000',
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
color_names: [
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
Expand Down Expand Up @@ -6911,6 +6911,10 @@
// :: helper function that use option to render objects
// ---------------------------------------------------------------------
function preprocess_value(value, options) {
if ($.terminal.Animation && value instanceof $.terminal.Animation) {
value.start(self);
return false;
}
if (is_function(settings.renderHandler)) {
var ret = settings.renderHandler.call(self, value, options, self);
if (ret === false) {
Expand Down Expand Up @@ -6978,10 +6982,6 @@
// :: Display object on terminal
// ---------------------------------------------------------------------
function display_object(object) {
if ($.terminal.Animation && object instanceof $.terminal.Animation) {
object.start(self);
return;
}
object = preprocess_value(object);
if (object === false) {
return;
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.terminal-2.27.1.min.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions js/jquery.terminal-src.js
Original file line number Diff line number Diff line change
Expand Up @@ -6911,6 +6911,10 @@
// :: helper function that use option to render objects
// ---------------------------------------------------------------------
function preprocess_value(value, options) {
if ($.terminal.Animation && value instanceof $.terminal.Animation) {
value.start(self);
return false;
}
if (is_function(settings.renderHandler)) {
var ret = settings.renderHandler.call(self, value, options, self);
if (ret === false) {
Expand Down Expand Up @@ -6978,10 +6982,6 @@
// :: Display object on terminal
// ---------------------------------------------------------------------
function display_object(object) {
if ($.terminal.Animation && object instanceof $.terminal.Animation) {
object.start(self);
return;
}
object = preprocess_value(object);
if (object === false) {
return;
Expand Down
12 changes: 6 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: Fri, 09 Jul 2021 11:59:39 +0000
* Date: Fri, 09 Jul 2021 12:43:54 +0000
*/
/* global define, Map */
/* eslint-disable */
Expand Down Expand Up @@ -4789,7 +4789,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Fri, 09 Jul 2021 11:59:39 +0000',
date: 'Fri, 09 Jul 2021 12:43:54 +0000',
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
color_names: [
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
Expand Down Expand Up @@ -6911,6 +6911,10 @@
// :: helper function that use option to render objects
// ---------------------------------------------------------------------
function preprocess_value(value, options) {
if ($.terminal.Animation && value instanceof $.terminal.Animation) {
value.start(self);
return false;
}
if (is_function(settings.renderHandler)) {
var ret = settings.renderHandler.call(self, value, options, self);
if (ret === false) {
Expand Down Expand Up @@ -6978,10 +6982,6 @@
// :: Display object on terminal
// ---------------------------------------------------------------------
function display_object(object) {
if ($.terminal.Animation && object instanceof $.terminal.Animation) {
object.start(self);
return;
}
object = preprocess_value(object);
if (object === false) {
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 38b63d5

Please sign in to comment.