Skip to content

Commit

Permalink
Commit
Browse files Browse the repository at this point in the history
Signed-off-by: pizzi80 <[email protected]>
  • Loading branch information
pizzi80 committed Dec 13, 2022
1 parent c51405e commit a3c89c8
Showing 1 changed file with 1 addition and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1135,29 +1135,7 @@ if ( !( (faces && faces.specversion && faces.specversion >= 40000 )
* @ignore
*/
const doEval = function doEval(element) {

// should be equal to Node.textContent
// let src = '';
// for ( const node of element.childNodes ) {
// src += node.nodeValue;
// }

// const nodeText = element.textContent;

// We have to wrap the call in an anon function because of a firefox bug, where this is incorrectly set
// We need to explicitly call window.eval because of a Chrome peculiarity

// const fn = function() {
// window.eval.call(window, src);
// };
// fn();

/**
* @ignore
*/
// switch to an async IIFE?
// TODO: async requires Safari 10... it was released on 2017... it's ok?
// async
// async IIFE
(async () => {
const src = element ? element.textContent : undefined;
if (src) window.eval.call(window, src);
Expand Down

0 comments on commit a3c89c8

Please sign in to comment.